-
Notifications
You must be signed in to change notification settings - Fork 780
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
Properly Implement StringSegment and StringSegmentComparer GetHashCode #457
Comments
@Tratcher, I'm inclined to closing this as there has been no community interest in this task. Any objections? |
https://github.com/dotnet/corefx/issues/31302 would solve our scenario rather nicely. I'd recommend keeping this open until that issue is resolved. |
Thanks @pranavkm. Assigning this to you for tracking purposes only. |
https://github.com/dotnet/corefx/issues/31302 is assigned to 3.0. Moving this out to the next milestone. |
This is no longer blocked 👍 See: https://github.com/dotnet/coreclr/pull/20422/files#diff-3f06377a79f6009a753e2864e9bdaab6R774 We should look for other places we can use this new functionality - possibly |
* Remove JSON output and convert to sample GlennC and I made the decisison to turn the JSON output into a sample rather than something we support out of the box. We wouldn't tell customers to definitely use it and we don't want to introduce more coupling to JSON.NET.
Fixes dotnet/extensions#457 Commit migrated from dotnet/extensions@1822a2c
Fixes dotnet/extensions#457 Commit migrated from dotnet/extensions@1822a2c
Fixes dotnet/extensions#457 Commit migrated from dotnet/extensions@1822a2c
Fixes dotnet/extensions#457 Commit migrated from dotnet/extensions@1822a2c
From @Tratcher on Monday, May 22, 2017 3:41:08 AM
#213
StringSegment.GetHashCode and StringSegmentComparer.GetHashCode(StringSegment) both substring and then string.GetHashCode() which defeats the purpose of using StringSegment.
Note that .NET Core strings use randomized hash codes to mitigate issues like dictionary hash collision attacks.
The header parsers in HttpAbstractions call both of these methods the header value types GetHashCode implementations, but I'm not aware of any instances where those header value types are used as keys into hashed collections.
Copied from original issue: #232
The text was updated successfully, but these errors were encountered: