[issue29634] Reduce deque repeat execution when maxlen exist and size is not 1

Serhiy Storchaka report at bugs.python.org
Fri Feb 24 03:15:54 EST 2017


Serhiy Storchaka added the comment:

There is an opportunity of further optimisation. For example deque(range(100000), maxlen=100001) *= 2 copies 100000 elements while it is enough to copy just 1 element. But I don't know whether it is worth to optimise this.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29634>
_______________________________________


More information about the Python-bugs-list mailing list