good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: Performance problems on splitting long stringsby BrowserUk (Patriarch) |
on Jan 31, 2014 at 16:30 UTC ( [id://1072876]=note: print w/replies, xml ) | Need Help?? |
Your benchmark is totally broken. When your _regex() function runs the first time, it complete destroys $string; and everytime after that the regex is operating on an empty string and thus runs very quicly. Ditto, every other test that runs after the first run of _regex(). With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|