I wonder why the file handle approach (fh) is slower here, when it was faster in this test: Re: Is foreach split Optimized?
If I had to wager a guess, it might be because in this thread, the benchmark is setting up a new filehandle on every line of input, while in the other thread, it's only a single filehandle.
By the way, in regards to speeding things up by compiling them, this might be a case where a script written for Will_the_Chill's RPerl could give performance benefits.
In reply to Re^3: What is the most efficient way to split a long string (see body for details/constraints)?
by haukex
in thread What is the most efficient way to split a long string (see body for details/constraints)?
by mikegold10
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |