[Mono-dev] string hash code collisions

Cetin Sert cetin.sert at gmail.com
Fri Jul 18 19:02:39 EDT 2008


Dear Mono Devs,

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.

You can read about it here:
http://corsis.blogspot.com/2008/07/mono-string-hash-code-collisions.html

Just wanted to ask about the implications of these results and whether you
might plan to improve on the current state.

Best Regards,
Cetin Sert

P/s: below is the quick and probably poor quality test code used to get the
results for the blog post
http://corsis.de/mono/string-hashcode-collision-test.cs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080719/dbd77158/attachment.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Program.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080719/dbd77158/attachment.pl 


More information about the Mono-devel-list mailing list