#lookup-tables #key #insertion #table #dont #deletion

stash

An amortized O(1) table for cases where you don’t need to choose the keys and want something faster than a HashTable

7 releases

0.1.5 Feb 27, 2023
0.1.4 Jul 5, 2019
0.1.3 Feb 26, 2017
0.1.0 Aug 27, 2016
0.0.1 Aug 27, 2016

#4 in #deletion

Download history 2/week @ 2024-06-29 27/week @ 2024-07-27 2/week @ 2024-08-03 2/week @ 2024-08-10 2/week @ 2024-08-31 7/week @ 2024-09-21 83/week @ 2024-09-28

90 downloads per month
Used in 2 crates (via addressable-pairing-heap)

MIT/Apache

48KB
1K SLoC

Stash

Stash is a library for storing items where you need (amortized) O(1) insertion, deletion, and lookups but don't care about the order of the items and don't need to be able to choose the keys.

Please see the API documentation for a more detailed description.

Authors


lib.rs:

Stash is a library for efficiently storing maps of keys to values when one doesn't care what the keys are but wants blazing fast O(1) insertions, deletions, and lookups.

Common use cases include file descriptor tables, session tables, or MIO context tables.

Blazing means an order of magnitude faster than hash maps and btree maps.

Dependencies

~180KB