Serhiy Storchaka added the comment:

Current cycle implementation is simple and clever, but can be optimized. The 
part about iterating LGTM (but looks the firstpass field can be eliminated at 
all). But __reduce__ doesn't look so optimal. It makes a copy of a list and 
makes iterating an unpickled cycle object slow. It would be more optimal if 
create new list with rotated content or even rotate original list inplace.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24874>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to