glob on Win32 can be orders of magnitude slower than it should be. The C code (from bash and/or BSD?) used to implement the default glob does a stat on every single file.
Use a different glob module to work around this problem. For example, just adding "-MFile::DosGlob=glob" should make a big difference.
- tye
In reply to Re: glob() far slower than `dir` (stat--)
by tye
in thread glob() far slower than `dir`
by halley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |