https://docs.python.org/3.0/library/bisect.html
> This module provides support for maintaining a list in sorted order without having to sort the list after each insertion.
> This module provides support for maintaining a list in sorted order without having to sort the list after each insertion.
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?