in reply to Re: Speedy directory searching
in thread Speedy directory searching

it is slower on win98 for many reasons with one of the largest being that fat32 is slow and does not get cached well when walking the dir tree. also use strict, hereto's and don't use & to call a sub (unles you have good reason) for example your wanted sub can look like this:
sub wanted { /TNSNAMES.ORA/i or return; Details($File::Find::name); }


-Waswas

Replies are listed 'Best First'.
Re: Re: Re: Speedy directory searching
by ironpaw (Novice) on Jul 16, 2003 at 04:09 UTC
    I'm using 2k NTFS locally. The better use of subs took the time from 2mins 30secs to 2mins 10secs which is well worth while (I will remember this so thanks). use strick is confusing and seems only to help my badly written working scripts to not work. I have yet to see an explenation of use strick that makes sense to me (I'll read it again now I have a little better understanding in general so thanks for the reminder). I know I should use it I don't know how or why so I'll RTFM and try to remember ;) Thanks again, the sub stuff is great.