DISQUS

DISQUS Hello!  The comments on this profile are unclaimed and thus are unverified.

Do they belong to you? Claim these comments.

Cetin Sert's picture

Unregistered

Feeds

aliases

  • Cetin Sert

Cetin Sert

11 months ago

in java.lang.String#hashCode on David R. MacIver
david: "3948 don’t collide, or about 1.6% of them"

3 characters mono 1.9.1:

again the same situation with mono 1.9.1 so I conclude java and mono use the same hashing algorithm:
http://sert.homelinux.org/projects/mono-collisi...

Oh by the way may I ask which implementation and version of java we are talking about here?

11 months ago

in java.lang.String#hashCode on David R. MacIver
even the colliding strings seem to be the same ones ^^

11 months ago

in java.lang.String#hashCode on David R. MacIver
I tested it with the same string size using a-zA-Z0-9. 32-bit Vista using .NET and mono.

running on .NET 3.5:
3844 two-char strings
14776336 comparisons
0 collisions with one or more items
0 total collisions

running on mono 1.9.1:
3844 two-char strings
14776336 comparisons
**3570** collisions with one or more items
5250 total collisions

http://sert.homelinux.org/projects/mono-collisi...

** the number is the same ^_^

1 year ago

in MSDN Search shows Mono results on Ivan Zlatev
You get these results only if you search the entire web (probably using live search) from msdn. If you search msdn only, no results whatsoever. See the drop down arrow button next to the search icon.
1 reply
Ivan Zlatev I can guarantee you I did not use the "Search Entire Web". I never do. There's Google for that. I just tried it and it shows 12 results and the MSDN-only search no longer shows the 5 results in my screenshot. I guess this all was just a temporarily glitch.
Returning? Login