Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 786 Bytes

README.md

File metadata and controls

28 lines (23 loc) · 786 Bytes

Langman.DataStructures.TreeDictionary

A fast .NET Red-Black Tree implementing IDictionary<TKey,TValue>

The API is identical to the .NET SortedDictionary.

State: Alpha (not complete, just basic insert/remove/query operations)

Some quick performance comparisons (n = 5,000,000)

ImplementationInsertionQueryIn-order EnumerationRemoval
1. System.Collections.Generic.SortedDictionary 1.447μs 0.782μs 0.098μs 1.227μs
2. Langman.DataStructures.TreeDictionary 0.801μs (55.33%) 0.707μs (90.44%) 0.088μs (89.64%) 0.855μs (69.67%)