Problem with bisect is that bisect.insort() insertion is O(n), whereas C++ set.insert() is O(log n).
Edit: it was coined a few times on the python-ideas mailing list but it seems it just died a silent death there. https://mail.python.org/archives/list/python-ideas@python.or...
FWIW: https://github.com/calroc/xerblin/blob/master/xerblin/btree....
> The module [bisect] ... uses a basic bisection algorithm to do its work.
~ https://docs.python.org/3.0/library/bisect.html
> Binary search runs in logarithmic time in the worst case, making O(log n) comparisons...
~ https://en.wikipedia.org/wiki/Binary_search_algorithm
edit: Unless you mean moving the data?