rehashinghashmap

Crates.iorehashinghashmap
lib.rsrehashinghashmap
version0.1.2
sourcesrc
created_at2015-06-21 06:58:36.545988
updated_at2015-12-16 00:01:49.263868
descriptionA HashMap wrapper that shrinks to fit in small steps.
homepage
repositoryhttps://github.com/seppo0010/rehashinghashmap
max_upload_size
id2431
size22,562
Sebastian Waisbrot (seppo0010)

documentation

README

Rehashing Hash Map

Build Status

A HashMap wrapper that shrinks to fit in small steps.

Why?

Some applications need a high availability and HashMap.shrink_to_fit is an expensive operation.

How?

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.

When?

In situations where you want to claim the memory back after removing elements from a set, but you cannot take a big downtime.

Commit count: 26

cargo fmt