Crates.io | rehashinghashmap |
lib.rs | rehashinghashmap |
version | 0.1.2 |
source | src |
created_at | 2015-06-21 06:58:36.545988 |
updated_at | 2015-12-16 00:01:49.263868 |
description | A HashMap wrapper that shrinks to fit in small steps. |
homepage | |
repository | https://github.com/seppo0010/rehashinghashmap |
max_upload_size | |
id | 2431 |
size | 22,562 |
A HashMap wrapper that shrinks to fit in small steps.
Some applications need a high availability and HashMap.shrink_to_fit
is an
expensive operation.
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
taken.
In situations where you want to claim the memory back after removing elements from a set, but you cannot take a big downtime.