This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients alexandre.vassalotti, pitrou, rhettinger, serhiy.storchaka
Date 2015-08-16.04:57:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1439701072.58.0.838643104972.issue24874@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-08-16 04:57:52serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, pitrou, alexandre.vassalotti
2015-08-16 04:57:52serhiy.storchakasetmessageid: <1439701072.58.0.838643104972.issue24874@psf.upfronthosting.co.za>
2015-08-16 04:57:52serhiy.storchakalinkissue24874 messages
2015-08-16 04:57:51serhiy.storchakacreate