2 ms·
But Java has ConcurrentHashMap as a drop-in replacement that is better in every way
by LgWoodenBadger 2y ago
But Java has ConcurrentHashMap as a drop-in replacement that is better in every way
- swiftcoder 2y agoConcurrentHashMap 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