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 louielu, rhettinger, serhiy.storchaka
Date 2017-02-23.16:56:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1487868984.78.0.712369568166.issue29634@psf.upfronthosting.co.za>
In-reply-to
Content
Wouldn't be better to update the number of repeats before the loop rather than checking at every iteration?

if (deque->maxlen >= 0 && n * size > deque->maxlen)
    n = (deque->maxlen + size - 1) / size;
History
Date User Action Args
2017-02-23 16:56:24serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, louielu
2017-02-23 16:56:24serhiy.storchakasetmessageid: <1487868984.78.0.712369568166.issue29634@psf.upfronthosting.co.za>
2017-02-23 16:56:24serhiy.storchakalinkissue29634 messages
2017-02-23 16:56:24serhiy.storchakacreate