#voxel

compressible-map

A hash map that allows compressing the least recently used values

6 releases

new 0.2.0 Nov 22, 2020
0.1.6 Nov 14, 2020
0.1.0 Oct 26, 2020

#96 in Rendering

Download history 18/week @ 2020-10-22 27/week @ 2020-10-29 146/week @ 2020-11-05 61/week @ 2020-11-12 62/week @ 2020-11-19

88 downloads per month
Used in 8 crates (via building_blocks_storage)

MIT license

52KB
1K SLoC

Compressible Map

A hash map that allows compressing the least recently used values. Useful when you need to store a lot of large values in memory.

Two compression backends are provided:

  • Lz4
  • Snappy

These can be used on any serializable values by setting:

features = ["compressed-bincode", "lz4"]

or

features = ["compressed-bincode", "snap"]

Or you can implement the Compression trait in your own way.

Dependencies

~0.6–1.4MB
~31K SLoC