mersinvald / primitive-map-rs

[WIP] Blazing fast [Integer -> T: Clone] Map crate
MIT License
3 stars 1 forks source link

BST Vec bucket to replace current Vec and SmallVec buckets #11

Open mersinvald opened 6 years ago

mersinvald commented 6 years ago

BST layered on a Vec/SmallVec structure with map interface should be the default for PrimitiveMap buckets.

Fitstly, it will support immutable keys in iterators to solve the problems described in #10. Secondly, it should improve performance, as both insertion and querying of entries if O(logn), compared to Vec/SmallVec's O(n) as both operations require looking up the element with the equal key.