Skip to content
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

Replace HashHelpers.Combine with HashCode.Combine #24489

Closed
jcdickinson opened this issue Dec 19, 2017 · 3 comments
Closed

Replace HashHelpers.Combine with HashCode.Combine #24489

jcdickinson opened this issue Dec 19, 2017 · 3 comments
Assignees
Labels
area-Meta enhancement Product code improvement that does NOT require public API changes/additions
Milestone

Comments

@jcdickinson
Copy link
Contributor

System.HashCode was recently added in order to make high-quality fast hashing easy. We should replace usage of HashHelpers.Combine, an internal low-quality hash combiner with HashCode.Combine. It should lead to better distribution in dictionaries and the hashing should be nearly as fast.

See: https://github.com/dotnet/coreclr/issues/15508

@danmoseley
Copy link
Member

@jcdickinson interested in finishing this off?

@jcdickinson
Copy link
Contributor Author

@danmosemsft there was a problem with completing this at the time. I had completed the majority of the work but was forced to gradually revert them. HashCode wasn't available in netfx and #if seemed like the wrong route, I decided to hold off until it shipped in netfx (as I assumed the vast majority of the alignment would be eventually reverted). Has HashCode shipped in netfx yet?

@Joe4evr
Copy link
Contributor

Joe4evr commented Jan 18, 2019

Has HashCode shipped in netfx yet?

Doesn't look like it.

@stephentoub stephentoub self-assigned this Sep 9, 2019
@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the 5.0 milestone Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Meta enhancement Product code improvement that does NOT require public API changes/additions
Projects
None yet
Development

No branches or pull requests

5 participants