4 ms·
> Java's HashMap is a bit different from almost every other language in that it lets you tune the load factor. I'm not sure that's particularly unusual. For ex
by sltkr 3y ago
> Java's HashMap is a bit different from almost every other language in that it lets you tune the load factor.
I'm not sure that's particularly unusual. For example, C++ supports this too:
https://en.cppreference.com/w/cpp/container/unordered_map/max_load_factor https://en.cppreference.com/w/cpp/container/unordered_map/ma...
- paulddraper 3y agotil thanks. (And Java doesn't let you change after construction.)