Don't ask to ask, just ask | |
PerlMonks |
File::Find on Win32 with mapped drivesby iakobski (Pilgrim) |
on Feb 13, 2002 at 14:23 UTC ( [id://145170]=perlquestion: print w/replies, xml ) | Need Help?? |
iakobski has asked for the wisdom of the Perl Monks concerning the following question:
I have a program which traverses directory trees and records the names of files that match certain criteria. This seemed like an ideal job for File::Find, and the program is fairly simple.
This program was running regularly and happily, then one day we need to run it on a load of remote drives. I mapped the drives and set off the program, it took three and a half hours to run. A bit of testing showed that it was running at a rate of at least 1000 files a second when traversing the local drive, but this dropped to a blistering 0.5 files per second across a good connection and 0.11 files per second for a drive in the far east. So what is going on here? I know it is slow to connect to a shared drive, but surely all it is doing is opening the directory and reading the file names? Are there any options in File::Find or any mods I can do to speed this up, or am I going to have to write my own directory traversing code instead? -- iakobski
Back to
Seekers of Perl Wisdom
|
|