[issue4174] Performance optimization for min() and max() over lists
Raymond Hettinger
report at bugs.python.org
Wed Oct 22 20:58:29 CEST 2008
Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:
Not that excited about adding this much code for such a small speedup.
Also, the list can change size during iteration so the for-loop needs to
be changed to:
for(i = 1; i<PyList_GET_SIZE(v); i++)
----------
priority: -> low
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4174>
_______________________________________
More information about the Python-bugs-list
mailing list