in reply to glob() far slower than `dir`
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: glob() far slower than `dir` (stat--)
by halley (Prior) on Feb 18, 2005 at 20:00 UTC |