3 ms·
The early versions of String.hashCode in java only looked at the first 16 characters of the string - when used for things like URLs this led to rather poor perf
by arethuza 9y ago
The early versions of String.hashCode in java only looked at the first 16 characters of the string - when used for things like URLs this led to rather poor performance!
https://en.wikipedia.org/wiki/Java_hashCode()#The_java.lang.String_hash_function https://en.wikipedia.org/wiki/Java_hashCode()#The_java.lang....