|
|
| There's more than one way to do things | |
| PerlMonks |
Re: Are beheaded strings known to be slow?by LanX (Saint) |
| on Oct 09, 2025 at 18:05 UTC ( [id://11166451]=note: print w/replies, xml ) | Need Help?? |
|
first observation test1 operates directly on $str not $s then you should measure how fast those substrs operate without the regex and if they really always deal with strings of the same length.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||