Dong-hee Na <donghee.n...@gmail.com> added the comment:
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 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39737> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com