Re:Compilers Are (Too) Smart
by LgWoodenBadger on Monday June 10, 2024 @01:48PM
(#40636111)
But Java has ConcurrentHashMap as a drop-in replacement that is better in every way
[ Parent
| on HN ]
Re:Compilers Are (Too) Smart
by swiftcoder on Tuesday June 11, 2024 @03:48AM
(#40643664)
ConcurrentHashMap is more performant in multi-threaded scenarios (it takes a performance hit versus the regular HashMap when single-threaded). Apart from that, it is fairly similar, and doesn't address the ridiculous rate of cache misses at all