Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: Optimizing performance for script to traverse on filesystemby Marshall (Canon) |
on Feb 02, 2012 at 07:46 UTC ( [id://951372]=note: print w/replies, xml ) | Need Help?? |
I guess that I'm the "devil's advocate" to the "devil's advocate"? re: File::Find - I think that we could cooperate and possibly increase internal performance (I'm game for that), but the interface is "spot on" - it works!. My suggested modifications to the OP's code represents a massive simplification of program logic. There is only one file system operation that happens per $File:Find::name. Maybe File::Find does some more "under the covers"? I'm not sure what you are proposing... But basically, I see no problem with code that makes a single decision based upon a single input.
I'm game to increase the performance of File::Find - are you willing to help me do it?
In Section
Seekers of Perl Wisdom
|
|