Message354487
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. |
|
Date |
User |
Action |
Args |
2019-10-11 19:24:51 | brandtbucher | set | recipients:
+ brandtbucher, serhiy.storchaka, pablogsal |
2019-10-11 19:24:51 | brandtbucher | set | messageid: <1570821891.78.0.986011233513.issue38436@roundup.psfhosted.org> |
2019-10-11 19:24:51 | brandtbucher | link | issue38436 messages |
2019-10-11 19:24:51 | brandtbucher | create | |
|