-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor performance and style improvements #20020
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes/Ideas look good to me overall, just a few comments. We'll also want to squash the commits to a lower number in the end.
I (think I) addressed all the comments, do you want me to try to logically groups commits or just squash everything when you merge it? |
For any issues that are fully resolved, can we add the corresponding |
Ideal would be one commit per "change", i.e. one for |
Done @abcdefg30, also added @RoosterDragon's suggestion |
Can you squash the space -> tab fixup into the "Use pattern matching" commit (where I think the change first happens)? (So that we don't have random revert commits in the history.) LGTM afterwards. |
👍🏼 Squashed and rebased. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, found two more small things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found one probable issue and a minor nit.
Co-authored-by: atlimit8 <atlimit8-vcs@gmx.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTE: I don't know why my comment for this line was not added to my last review; I probably forgot to add it to the review. That is why I have been waiting.
Feel free to cherry-pick only some of the commits (or none of them!)
All these changes have been detected by static analysis and auto-resolved using VS suggestions, otherwise I wouldn't date to send such a length PR.
Count()
->.Count()
or.Length
when possibleAny()
->.Count()
or.Length
when possiblex.ToLowerInvariant() == y
->string.Equals(x, y, StringComparison.InvariantCultureIgnoreCase)
)