Hash versus substitutation efficiency?by bwelch (Curate)
|on Oct 11, 2004 at 18:56 UTC||Need Help??|
bwelch has asked for the
wisdom of the Perl Monks concerning the following question:
Parsing a document and searching for key terms, which of these is best for speed of execution and memory utilization?
Option 1: Checking a hash of about 100,000 entries:
Option 2: 100,000 global substitutions
updated: Correcton to option 2. Thanks to Roy Johnson