Measuring the overhead of HashMaps in Rust

from blog ntietz.com blog, | ↗ original
While working on a project where I was putting a lot of data into a HashMap, I started to notice my hashmaps were taking up a lot of RAM. I mean, a lot of RAM. I did a back of the napkin calculation for what the minimum memory usage should be, and I was getting more than twice what I expected in resident memory. I'm aware that HashMaps trade off...