What is alternative hashing for String keys in Java 8?
问题 Java 8 is providing alternative hashing for String keys to improve performance when a large number of key hash code collisions are encountered. Can anybody explain what is that and how it will work? 回答1: From this email of core-lib-devs@openjkd : A new interface Hashable32 is introduced. Hashable32 provides a method hash32() String implements Hashable32 and hash32() method HashMap et al recognize String and invoke hash32() rather than hashCode() The revisions of the code: Murmur3 : https:/