-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Improve dictionary lookup perf for OrdinalIgnoreCase #36252
Merged
GrabYourPitchforks
merged 15 commits into
dotnet:master
from
GrabYourPitchforks:dict_perf
Aug 6, 2020
Merged
Changes from 14 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
931237f
Improve dictionary lookup perf for OrdinalIgnoreCase
GrabYourPitchforks c7b4b85
Update license headers
GrabYourPitchforks 5e3fbe0
Merge remote-tracking branch 'origin/master' into dict_perf_dev
GrabYourPitchforks 4a2dd25
Consolidate string EqualityComparer logic
GrabYourPitchforks 005a439
Make IEqualityComparerProxy non-generic
GrabYourPitchforks 71754c7
Merge remote-tracking branch 'origin/master' into dict_perf_dev
GrabYourPitchforks f6cf2f5
Minor cleanup
GrabYourPitchforks 7bbc64a
Fix resx test name mangling logic
GrabYourPitchforks e87196f
Don't load CultureInfo.InvariantCulture eagerly
GrabYourPitchforks eff0b22
Add collection hash collision unit tests
GrabYourPitchforks 8f60bb1
Fix null ref in HashSet
GrabYourPitchforks 2c5d91e
Merge remote-tracking branch 'origin/master' into dict_perf_dev
GrabYourPitchforks bbc8c8c
Merge remote-tracking branch 'origin/master' into dict_perf_dev
GrabYourPitchforks 3769225
Update TestData.resources
GrabYourPitchforks 2d34efd
PR feedback & fix failing unit test
GrabYourPitchforks File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
would it be better to use
MemberData
in order to get separate pass/fail results for each of these comparers?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 tried that initially, but it was a bit cryptic to match the failure back to the argument instance. Maybe there's some secret sauce to getting a friendlier error message in that case?
Right now you get a line number as part of the exception if there's a failure. And while it's not ideal, at least it's a straightforward mapping.
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.
Fair enough. Possibly it would require some trick such as passing a 2nd parameter that was the comparer name.