Perl: the Markov chain saw | |
PerlMonks |
Re^3: Weighted frequency of characters in an array of stringsby Anonymous Monk |
on Jun 08, 2016 at 09:02 UTC ( [id://1165134]=note: print w/replies, xml ) | Need Help?? |
substr and chop do only one thing, which means they're much faster than regex engine Also while...=~/(.)/g; is fastest written as for split '',...;, For a sea of benchmarks/topic/"explanations" about these tricks see Re: How to make this substitutions without splitting the strings? (compute not reckon)
In Section
Seekers of Perl Wisdom
|
|