Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment: With optimized repeat():
$ ./python -m perf timeit --compare-to=../cpython-release/python -s 'from itertools import repeat' 'list(repeat(None, 1000000))' /home/serhiy/py/cpython-release/python: ..................... 3.77 ms +- 0.06 ms /home/serhiy/py/cpython-iter/python: ..................... 3.77 ms +- 0.05 ms Mean +- std dev: [/home/serhiy/py/cpython-release/python] 3.77 ms +- 0.06 ms -> [/home/serhiy/py/cpython-iter/python] 3.77 ms +- 0.05 ms: 1.00x faster (-0%) Not significant! ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31815> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com