thincollections

Crates.iothincollections
lib.rsthincollections
version0.5.4
sourcesrc
created_at2018-10-28 14:21:23.93887
updated_at2023-04-27 00:56:36.070999
descriptionAlternative implementations for vector, map and set that are faster/smaller for some use cases.
homepagehttps://github.com/mohrezaei/thincollections
repositoryhttps://github.com/mohrezaei/thincollections
max_upload_size
id93114
size366,468
Mohammad Rezaei (mohrezaei)

documentation

https://docs.rs/thincollections

README

thincollections

Latest version Documentation Minimum rustc version

Alternative implementations for vector, map and set that are faster/smaller for some use cases. The benchmarks are now outdated. Rust's hashbrown map implementation is faster than the original Rust hashmap, but ThinMap can still be faster for some operations.

Old: ThinMap can be 2x to 5x faster than std::collections::HashMap. See the benchmarks.

Usage

Add this to your Cargo.toml:

[dependencies]
thincollections = "0.5"

and this to your crate root:

#[macro_use]
extern crate thincollections;

Rust Version Support

The minimum supported Rust version is 1.28 due to use of allocator api and NonZero*.

Commit count: 14

cargo fmt