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

Raymond Hettinger report at bugs.python.org
Sat Feb 29 13:47:40 EST 2020


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

Marking this as "pending".  It is more of a personal research project than a bug report, feature request, or known optimization.

The underlying hypothesis is that compilers aren't smart enough to generate good code for a simple for-loop that moves data.

The evidence is weak as involves timing unusual cases, with significantly different calling patterns, and that make repeated calls to realloc() which can throw the results off wildly.

----------
priority: normal -> low
status: open -> pending
versions: +Python 3.9 -Python 3.8

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


More information about the Python-bugs-list mailing list