Just another Perl shrine | |
PerlMonks |
Re^2: performance of length() in utf-8by kennethk (Abbot) |
on Mar 03, 2016 at 20:38 UTC ( [id://1156763]=note: print w/replies, xml ) | Need Help?? |
Your LenTestA is exponentialThat would be quadratic growth. You have a series of operations that grows linearly, and your number of invocations grows linearly with line length. #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
In Section
Seekers of Perl Wisdom
|
|