Message357146 
            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).  |      |
  | Date |  User |  Action |  Args |    | 2019-11-21 09:37:33 | giampaolo.rodola | set | recipients: + giampaolo.rodola, kinow, cboltz |   | 2019-11-21 09:37:33 | giampaolo.rodola | set | messageid: <1574329053.75.0.504146813904.issue38688@roundup.psfhosted.org> |   | 2019-11-21 09:37:33 | giampaolo.rodola | link | issue38688 messages |   | 2019-11-21 09:37:33 | giampaolo.rodola | create |  |        |