[issue24874] Improve pickling efficiency of itertools.cycle

Raymond Hettinger report at bugs.python.org
Sat Aug 15 23:54:15 CEST 2015


Raymond Hettinger added the comment:

Also, looking at the source for itertools.cycle(), it looks like the overall speed could be boosted considerably by looping over the saved list directly rather than allocating a new list iterator every time the cycle loops around.

----------

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


More information about the Python-bugs-list mailing list