[issue25596] Use scandir() to speed the glob module

2016-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Results of microbenchmarks for glob_scandir_4.patch: $ ./python -m timeit -s "from glob import glob" -- "glob('**/*', recursive=True)" Unpatched: 275 msec per loop Patched: 79.4 msec per loop $ ./python -m timeit -s "from glob import glob" -- "glob('/usr/l

[issue25596] Use scandir() to speed the glob module

2016-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Xavier for correcting the documentation. Here is minimal patch that switches the glob module to scandir(). -- title: regular files handled as directories in the glob module -> Use scandir() to speed the glob module Added file: http://bugs.p