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 corona10
Recipients Dennis Sweeney, corona10, serhiy.storchaka, vstinner
Date 2020-02-25.15:08:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1582643303.73.0.570941297377.issue39737@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2020-02-25 15:08:23corona10setrecipients: + corona10, vstinner, serhiy.storchaka, Dennis Sweeney
2020-02-25 15:08:23corona10setmessageid: <1582643303.73.0.570941297377.issue39737@roundup.psfhosted.org>
2020-02-25 15:08:23corona10linkissue39737 messages
2020-02-25 15:08:23corona10create