Crates.io | thincollections |
lib.rs | thincollections |
version | 0.5.4 |
source | src |
created_at | 2018-10-28 14:21:23.93887 |
updated_at | 2023-04-27 00:56:36.070999 |
description | Alternative implementations for vector, map and set that are faster/smaller for some use cases. |
homepage | https://github.com/mohrezaei/thincollections |
repository | https://github.com/mohrezaei/thincollections |
max_upload_size | |
id | 93114 |
size | 366,468 |
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.
Add this to your Cargo.toml
:
[dependencies]
thincollections = "0.5"
and this to your crate root:
#[macro_use]
extern crate thincollections;
The minimum supported Rust version is 1.28 due to use of allocator api and NonZero*.