Hash quality and stability of String.GetHashCode() in .NET?

前端 未结 5 463
日久生厌
日久生厌 2020-12-31 04:03

I am wondering about the hash quality and the hash stability produced by the String.GetHashCode() implementation in .NET?

5条回答
  •  醉话见心
    2020-12-31 04:30

    I know that this isn't really included the meanings of quality and stability that you specified, but it's worth being aware that hashing extremely large strings can produce an OutOfMemoryException.

    https://connect.microsoft.com/VisualStudio/feedback/details/517457/stringcomparers-gethashcode-string-throws-outofmemoryexception-with-plenty-of-ram-available

提交回复
热议问题