Problems? Is your data what you think it is? | |
PerlMonks |
Re: Performance problems on splitting long stringsby boftx (Deacon) |
on Jan 30, 2014 at 19:49 UTC ( [id://1072721]=note: print w/replies, xml ) | Need Help?? |
You would have to benchmark this to be sure, but you might try spliting on '' to get a char array then shift or splice off multiples of 5 chars at a time. (Though I suspect unpack will be faster.)
It helps to remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.
In Section
Seekers of Perl Wisdom
|
|