[issue42147] Micro optimization for longrange iteration if step is 1

Serhiy Storchaka report at bugs.python.org
Sun Oct 25 12:03:17 EDT 2020


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Sorry, but I do not think it is worth. If there are any issues with multiplying by 1, it may be worth to optimize multiplication of integers in general. But iterating range(1 << 1000, (1 << 1000) + 100) looks a pretty artificial example.

----------
nosy: +mark.dickinson, rhettinger, serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42147>
_______________________________________


More information about the Python-bugs-list mailing list