[issue7784] patch for making list/insert at the top of the list avoid memmoves

Florent Xicluna report at bugs.python.org
Tue Jan 26 12:53:02 CET 2010


Florent Xicluna <laxyf at yahoo.fr> added the comment:

Steve, thank you for your patch.

IMHO, it's better to provide a patch against trunk (Py2) when the optimization is not specific to 3.x.

I merged it manually on my working copy, and all tests pass without leaking. Patch for Py2 attached.

However, I am not an expert. I just cleaned the tab/space mix to conform with what is used in the listobject.c file.

----------
keywords: +patch
nosy: +flox
stage:  -> patch review
versions: +Python 2.7
Added file: http://bugs.python.org/file16009/issue7784_listobject_perf.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7784>
_______________________________________


More information about the Python-bugs-list mailing list