This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author brandtbucher
Recipients brandtbucher, pablogsal, serhiy.storchaka
Date 2019-10-11.19:24:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1570821891.78.0.986011233513.issue38436@roundup.psfhosted.org>
In-reply-to
Content
Serhiy, here are the better performance measurements:


$ ./python.exe -m pyperf timeit --duplicate=1000 -s z=0 z+0  # list-add
.....................
Mean +- std dev: 17.3 ns +- 0.3 ns

$ ./python.exe -m pyperf timeit --duplicate=1000 -s z=0 z+0  # master
.....................
Mean +- std dev: 17.2 ns +- 0.3 ns

$ ./python.exe -m pyperf timeit --duplicate=1000 -s l=[0,1,2,3] [0,1,2,3]+l  # New branch
.....................
Mean +- std dev: 92.6 ns +- 1.7 ns

$ ./python.exe -m pyperf timeit --duplicate=1000 -s l=[0,1,2,3] l+[0,1,2,3]  # Old branch
.....................
Mean +- std dev: 99.8 ns +- 1.4 ns


Honestly, I'll defer to you here. If you feel like pursuing this is a total waste of time, I'll just close the issue/PR. Otherwise I can explore how often the branch is hit in production code, as you suggested.
History
Date User Action Args
2019-10-11 19:24:51brandtbuchersetrecipients: + brandtbucher, serhiy.storchaka, pablogsal
2019-10-11 19:24:51brandtbuchersetmessageid: <1570821891.78.0.986011233513.issue38436@roundup.psfhosted.org>
2019-10-11 19:24:51brandtbucherlinkissue38436 messages
2019-10-11 19:24:51brandtbuchercreate