Comment by athekunal

3 months ago

I built a project that implemented intervaltree in Rust and exposed PyO3 bindings as a drop-in replacement for Python's native intervaltree. It is significantly faster, and I will be adding more features, such as AVL and red-black trees for balancing.

If you want balanced trees, have a look at what Rust's standard library does with BTreeMap.