We don't bite newbies here... much | |
PerlMonks |
Re: Re: Re: Re: Re: Re: Re: speeding up a file-based text searchby BrowserUk (Patriarch) |
on May 07, 2003 at 22:33 UTC ( [id://256406]=note: print w/replies, xml ) | Need Help?? |
Phrase matching is not the same as "and" matching. Agreed. Sorry if implied otherwise. But once you have a list of the records that contain all the terms, then validating these against the original phrase is considerably less costly than searching the whole 20MB. Good point. Using index on the keys of the hash does make more sense. 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
In Section
Seekers of Perl Wisdom
|
|