rehashinghashmap 0.1.2

A HashMap wrapper that shrinks to fit in small steps.
Documentation
  • Coverage
  • 0%
    0 out of 26 items documented0 out of 25 items with examples
  • Size
  • Source code size: 22.72 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 6.01 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • seppo0010/rehashinghashmap
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • seppo0010

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.