4 releases
0.1.25 | Dec 22, 2023 |
---|---|
0.1.24 | Dec 19, 2023 |
0.1.23 | Jul 10, 2023 |
0.1.15 |
|
#1345 in Data structures
121 downloads per month
90KB
1.5K
SLoC
indextreemap
IndexTreeMap is an ordered tree map based on the rust standard library BTreeMap, that allows for items to be accessed by key, value, or position in the tree.
This library is meant to serve niche use cases where the deterministic ordering of key-value items is required, with the ability to index items by position or key in logarithmic time.
When compared to the standard library BTreeMap (std::collections::BTreeMap), for operations that require changes in memory allocation (insert, remove, etc...) the IndexTreeMap is slower. However, when referencing data already allocated in memory, the IndexTreeMap is equivalent or faster.
Dependencies
~0.3–0.9MB
~21K SLoC