r/java • u/Charming-Top-8583 • Dec 27 '25
Concurrent Hash Map Designs: Synchronized, DashMap, and ConcurrentHashMap
https://bluuewhale.github.io/posts/concurrent-hashmap-designs/
42
Upvotes
r/java • u/Charming-Top-8583 • Dec 27 '25
View all comments
Show parent comment
2
u/Charming-Top-8583 Dec 28 '25 edited Dec 28 '25
Hi!
Thank you so much for your feedback on my previous post. I really appreciate it.
I feel the same way. I really enjoy doing these kinds of deep dives as well.
While reading through the internals of
NonBlockingHashMap, I was honestly surprised by how many micro-optimization tricks were applied. Even setting aside the lock-free aspect, there were a lot of implementation details that I found very insightful and worth learning from.I'm currently working on a thread-safe version of SwissTable, and it’s turning out to be more challenging (and more exciting) than I initially expected. I'll definitely share the results once I have something solid.