onebuck-0.1.3 has been yanked.
onebuck
An efficient unordered dynamically-sized data structure.
Time Complexity
| Method | Time |
|---|---|
| get | O(1) |
| insert | O(1) |
| remove | O(1) |
| grow | O(k) |
| shrink | O(k) |
k- original capacity
Memory Fragmentation
- Due to compaction on removal, this is essentially disregarded, resulting in incredibly fast iteration.
Features
atomic- usesstd::sync::Arcinstead of the defaultstd::rc::Rcfor thread safety.clone- allowsValueIndex's to be cloneable, allowing for greater versatility.get(default) - Obtain reference from bucket at indexed position.