Message362646
IMHO, I can not see a noticeable performance improvement.
I think that the modern compiler will optimize the reused variable. ;)
The below result might be noise.
[master]
./python.exe -m pyperf timeit "A = list(range(10**3)); B = list(range(10**3))" "A==B"
.....................
Mean +- std dev: 415 us +- 6 us
[PR 18638]
./python.exe -m pyperf timeit "A = list(range(10**3)); B = list(range(10**3))" "A==B"
.....................
Mean +- std dev: 433 us +- 20 us |
|
Date |
User |
Action |
Args |
2020-02-25 15:08:23 | corona10 | set | recipients:
+ corona10, vstinner, serhiy.storchaka, Dennis Sweeney |
2020-02-25 15:08:23 | corona10 | set | messageid: <1582643303.73.0.570941297377.issue39737@roundup.psfhosted.org> |
2020-02-25 15:08:23 | corona10 | link | issue39737 messages |
2020-02-25 15:08:23 | corona10 | create | |
|