by RyanZAG · 12y ago · 0 comments
eg, http://trove.starlight-systems.com/ or http://acs.lbl.gov/software/colt/ in the case of the Java version.
EDIT: Here is the kind of performance differences you get between hash implementations to demonstrate why you wouldn't just use the standard implementations if it's a performance critical part: http://b010.blogspot.com/2009/05/speed-comparison-of-1-javas...
Shows Colt int map running 3.5x faster and with 65% of the ram usage as the standard hashmap.
If there's a better general-purpose hash table, the standard library hash should be using it.
(Special-purpose, sure, use a custom data structure.)
The standard library doesn't contain these, because in 99% of apps, the actual performance of the hash table is a very minor part and a small bit of overhead for added convenience is worth it. However in a program where the hashmap is the key point, you'd obviously choose to optimize it to fit your goals.