No such thing as a small change | |
PerlMonks |
Re^6: Fast - Compact That Stringby tobyink (Canon) |
on Feb 12, 2012 at 22:07 UTC ( [id://953361]=note: print w/replies, xml ) | Need Help?? |
The code I checked was the version posted, which did not inline subs. Obviously, inlining subs will speed up all the versions. My version averages about 27 seconds for a million strings on my computer which is a fairly low-powered netbook, several years old. Versus Re^3: Fast - Compact That String which averaged about 30 seconds for a million strings, on the same computer. Scripts I tested, including input data are available at http://buzzword.org.uk/2012/faster/.
In Section
Seekers of Perl Wisdom
|
|