P is for Practical | |
PerlMonks |
Re^3: Threads From Hell #2: How To Parse A Very Huge Fileby marioroy (Prior) |
on May 24, 2015 at 12:57 UTC ( [id://1127582]=note: print w/replies, xml ) | Need Help?? |
MCE::Grep is not the tool for this. Calling a code block (once per line) is the reason for the overhead. The testing was done on a CentOS VM. However, the MCE::Loop example showed a way that allows Perl to run faster. Surely, one is not likely to force a character count. I was mainly comparing the wc binary against the Perl script.
In Section
Seekers of Perl Wisdom
|
|