-
Reducing memory usage 10 times with High-Performance Primitive Collections
A HashSet with 100 million entries takes 5 GB. The same data in an HPPC IntHashSet takes 518 MB. Where the difference comes from and when it’s worth reaching for primitive collections.