Skip to content

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

Notifications You must be signed in to change notification settings

youknowjack0/treedictionary

Repository files navigation

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%)

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages