Giampaolo Rodola' <g.rod...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue38688>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to