[proxy] bugs.python.org← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light

Message 248674 - Python tracker

Message248674

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