in reply to Speedy directory searching

Is this running locally, or across a network? You show "c:/" but you also say that "names were changed".

It's a trivial point in this case, but why do you assign $filename = $File::Find::name; before passing it to &Details($filename);?

If you really need to speed this up, there are probably things that can be done, but you'd need to supply a little more information.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller


Replies are listed 'Best First'.
Re: Re: Speedy directory searching
by ironpaw (Novice) on Jul 17, 2003 at 02:06 UTC
    Answer. 65,000 files in 12,000 directories. Takes 2 1/2 mins reduced to 2mins 10sec by better calling of subs as suggested by one of the replies. OS is Win2000, NTFS, Perl is version 5.005_02. Windows takes about 2 mins to seach all files with indexing on so I am guessing at so many files this is as fast as can expect. I was wondering if there was something obvious I was missing, there is lots of files take time to search... Thanks Paw