![]() |
|
more useful options | |
PerlMonks |
Re: Fastest split possibleby afoken (Chancellor) |
on Nov 06, 2019 at 20:52 UTC ( #11108405=note: print w/replies, xml ) | Need Help?? |
Is splitting at newlines really your bottleneck? Or are you microoptimizing irrelevant parts of your code? Try Devel::NYTProf, generate a report (run nytprofhtml) and look for code that is highlighted in red, because it is slow or runs very often. That's where you want to optimize for speed. (See also https://www.slideshare.net/Tim.Bunce/nyt-prof-201406key) Everything else should be optimized for maintainance, i.e. keep your code clear, readable, and documented. Alexander
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Seekers of Perl Wisdom
|
|