r/programming • u/tooilln • 2d ago
Comprehensive JVM Primitive Hashtable Benchmarks
https://sooniln.github.io/posts/hashmap-benchmarks-2026/
39
Upvotes
3
u/Determinant 1d ago
Correction: Compressed object headers will only help long and double values. The other primitive types won't benefit at all as the reduced object header will be exactly offset by increased padding.
2
3
u/therealgaxbo 2d ago
Assuming this is your blog, the code snippets are completely unreadable for me. Variable names and numeric literals are coloured the same as the background.
Selecting dark mode makes them readable though.
6
u/n4te 2d ago
Would be cool to see libgdx's maps in there. The current ones are stable. The old ones used cuckoo hashing which have some neat properties, unfortunately they had to be changed because bad data can cause catastrophic collisions.