in reply to Re: File Checking
in thread File Checking

Hey slycer. You're looping around your data far too often.

while ( <WORDLIST> ) { print OUTFILE unless $list{lc($_)}++; }

will be up to three time faster as it only needs to go through the data once.

(Whoops! This is essentially what IO said.)

Replies are listed 'Best First'.
Re: Re: Re: File Checking
by the_slycer (Chaplain) on Jan 29, 2001 at 01:37 UTC
    Yah, I wrote that probably about 6 months ago as kind of a learning excersise.. I knew as soon as I posted it that it could be better, but oh well. Thanks for pointing out the errors :-)