Serhiy Storchaka added the comment: Confirmed speed up about 20%. Surprisingly it affects even integers outside of the of preallocated small integers (-5...255).
Before: $ ./python -m timeit -s "x=10" "x+x" 10000000 loops, best of 3: 0.143 usec per loop $ ./python -m timeit -s "x=1000" "x+x" 1000000 loops, best of 3: 0.247 usec per loop After: $ ./python -m timeit -s "x=10" "x+x" 10000000 loops, best of 3: 0.117 usec per loop $ ./python -m timeit -s "x=1000" "x+x" 1000000 loops, best of 3: 0.209 usec per loop All measures are made with modified timeit (issue21988). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21955> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com