|
|
|
|
|
by olliej
1325 days ago
|
|
The point is that you can remove the entries from the map, and the map won't ever shrink. If you're using large value type in the map[1], the map's dead storage will be large - by a functionally unbound amount. Most sane collection libraries shrink their backing store after some sufficiently large portion becomes dead. [1] I would argue a general purpose hash table/map should really switch to using a hash code=>index mapping automatically if the value type size is sufficiently large. |
|
If you exclude Java, and C++ and C# I think, stdlibs from being sane, sure.