Does anybody know if Python has an equivalent to Java\'s SortedSet interface?
Heres what I\'m looking for: lets say I have an object of type foo
, and I know
Take a look at BTrees. It look like you need one of them. As far as I understood you need structure that will support relatively cheap insertion of element into storage structure and cheap sorting operation (or even lack of it). BTrees offers that.
I've experience with ZODB.BTrees, and they scale to thousands and millions of elements.