[Mono-dev] string hash code collisions
marek.safar at seznam.cz
Mon Jul 21 07:28:32 EDT 2008
> I tested string hash code collisions in mono and .NET and saw that
> mono's hash code algorithm for strings lead to almost the same
> collisions with java whereas .NET seems to perform better with 0
> collisions in both tests.
Your observation is correct. Mono string GetHashCode has bad hash
distribution. This is something we should fix in future and I have some
code ready locally. If you can provide representative sample data it
would help me to test our new implementation.
More information about the Mono-devel-list