Perl: the Markov chain saw | |
PerlMonks |
Re: Re: Slurping BIG files into Hashesby hardburn (Abbot) |
on Jun 18, 2003 at 17:55 UTC ( [id://266930]=note: print w/replies, xml ) | Need Help?? |
Regexen are almost always going to be slower than substr. Normally, I'd put a big notice here about premature optimization being the root of all something or other, but in this case we actually do need to optimize. Of course, benchmarks need to be done to be sure. ---- Note: All code is untested, unless otherwise stated
In Section
Seekers of Perl Wisdom
|
|