Tagged articles
2 articles
Page 1 of 1
Java Backend Technology
Java Backend Technology
Apr 25, 2022 · Backend Development

Why Netty’s IntObjectHashMap Beats HashMap: Deep Dive into Performance and Design

This article explores Netty’s IntObjectHashMap, explaining how its use of primitive int keys and open‑addressing linear probing reduces memory overhead and improves performance compared to standard HashMap, while detailing its source‑code evolution, capacity handling, probing strategy, load factor, and deletion compaction.

Data StructuresHashMapIntObjectHashMap
0 likes · 19 min read
Why Netty’s IntObjectHashMap Beats HashMap: Deep Dive into Performance and Design
Su San Talks Tech
Su San Talks Tech
Apr 9, 2022 · Backend Development

Why Netty’s IntObjectHashMap Beats HashMap: A Deep Dive into Performance and Design

This article explores how Netty’s IntObjectHashMap improves high‑concurrency ticket‑pricing scenarios by using primitive int keys, open‑addressing linear probing, and careful capacity adjustments, revealing the source‑code evolution, hashIndex optimizations, load‑factor tuning, and deletion compaction that together deliver significant memory and CPU savings.

Data StructuresHashMapIntObjectHashMap
0 likes · 20 min read
Why Netty’s IntObjectHashMap Beats HashMap: A Deep Dive into Performance and Design