Look how messy the implementation of Concurrent HashMap πŸ™ƒ

Arpit Bhayani

Arpit Bhayani

Jun 29, 2023 β€’ 1 min read


Look how messy the implementation of Concurrent HashMap πŸ™ƒ

Next time a Java β€œexpert” asks me to write extensible, abstracted, and verbose code; I am going to show him/her this snippet and have some fun πŸ˜…

Today, I spent a couple of hours going through Java’s implementation of Concurrent HashMap. Definitely, not an easy code to go through.

Although the code is messy and difficult to comprehend, the comment surrounding the functions makes it a little easier to understand.

Ref: Implementation of ConcurrentHashMap - https://lnkd.in/gfep_TZQ

I keep writing and sharing these engineering nuggets, so if you are keen on learning them, follow along.

Subscribe to my channel and check out my YT playlist on Concurrency where I have covered some really interesting topics and internals of well-known structures; many more to come.

subscribe - youtube.com/c/ArpitBhayani

no fluff; just engineering.

Arpit Bhayani

Principal Engineer II at Razorpay - building Agent Studio, Ex-staff engg at GCP Memorystore & Dataproc, Creator of DiceDB, ex-Amazon Fast Data, ex-Director of Engg. SRE and Data Engineering at Unacademy. I spark engineering curiosity through my no-fluff engineering videos on YouTube and my courses