cats-collections
cats-collections copied to clipboard
convert Diet into a balanced tree.
I found that Scalaz Diev has lower inserts/deletions than our Diet, but is quite faster in searches. We can balance Diet so we improve search, yet, it might compromise inserts/deletions.
The original Diet paper doesn't talk about balancing it out, but will it be something we should consider?
I was wrong, it is the other way around. Still, it might be a good idea to balance Diet?
I have an implementation of a Diet in Haskell here: https://github.com/j-mie6/rangeset
It has the balancing property, and also implements a faster union and intersection than the one Diet
uses. Perhaps some of the ideas can be ported over? (I'd be willing to work on this if so). I have a draft paper that describes the implementation.