[issue39801] list.insert is slow, likely due to manual memmove

Stefan Pochmann report at bugs.python.org
Sat Feb 29 12:07:01 EST 2020


Stefan Pochmann <stefan.pochmann at gmail.com> added the comment:

I believe it also affects bisect.insort, which I occasionally use when I need a "self-sorting list" (I can't easily test it, as I'm not set up to modify the C version of bisect.insort).

And also the popular sortedcontainers package, which relies on such list operations to be fast: http://www.grantjenks.com/docs/sortedcontainers/

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39801>
_______________________________________


More information about the Python-bugs-list mailing list