[issue38688] Python 3.8 regression: endless loop in shutil.copytree

Giampaolo Rodola' report at bugs.python.org
Thu Nov 21 04:37:33 EST 2019


Giampaolo Rodola' <g.rodola at gmail.com> added the comment:

The speedup introduced in issue33695 is mostly because the number of os.stat() syscall was reduced from 6 to 1 per file (both by using scandir() and because stat() results are cached and passed around between function calls). As such, even if we immediately consume scandir() iterator I believe it won't have a meaningful impact in terms of speed. FWIW issue33695 has a benchmark script attached (but it's not very stable).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38688>
_______________________________________


More information about the Python-bugs-list mailing list