Crates.io | indextreemap |
lib.rs | indextreemap |
version | 0.1.25 |
source | src |
created_at | 2023-06-29 00:40:18.911729 |
updated_at | 2023-12-22 15:20:27.784749 |
description | A BTreeMap implementation that allows for key and or positional insertion and retreival. |
homepage | |
repository | https://github.com/d-tietjen/indextreemap_rust |
max_upload_size | |
id | 902868 |
size | 136,079 |
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.