#set #map #vec #vector

thincollections

Alternative implementations for vector, map and set that are faster/smaller for some use cases

5 releases

Uses old Rust 2015

0.5.4 Apr 27, 2023
0.5.3 Oct 30, 2018
0.5.2 Oct 29, 2018
0.5.1 Oct 29, 2018
0.5.0 Oct 28, 2018

#546 in Data structures

Download history 56/week @ 2023-12-17 31/week @ 2023-12-31 45/week @ 2024-01-07 71/week @ 2024-01-14 36/week @ 2024-01-21 24/week @ 2024-01-28 23/week @ 2024-02-04 25/week @ 2024-02-11 4/week @ 2024-02-18 18/week @ 2024-02-25 31/week @ 2024-03-03 77/week @ 2024-03-10 72/week @ 2024-03-17 117/week @ 2024-03-24 143/week @ 2024-03-31

412 downloads per month
Used in 2 crates

MIT/Apache

350KB
6K SLoC

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*.

No runtime deps