Serhiy Storchaka added the comment:

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;

----------
assignee:  -> rhettinger
nosy: +rhettinger, serhiy.storchaka

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

Reply via email to