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.
eru
3 months ago
If you want balanced trees, have a look at what Rust's standard library does with BTreeMap.
jeffparsons
3 months ago
And with a little work you can even use them to map ranges of keys to values in a way that's reminiscent of interval trees — e.g. https://crates.io/crates/rangemap. (Disclosure: that's my crate.)
Epa095
3 months ago
What is the native intervaltree, is it [1] you mean? Do you also support the set operations? And can it be pickled safely?
stefanka
3 months ago
Will you publish it as a crate too?