Rehashing Hash Map
A HashMap wrapper that shrinks to fit in small steps.
Some applications need a high availability and
HashMap.shrink_to_fit is an
Taking a hit in memory. A
RehashingHashMap has two HashMap structs and when
shrinking it moves the element from one to the other on every write operation
In situations where you want to claim the memory back after removing elements from a set, but you cannot take a big downtime.