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 reply to Re^3: Threads From Hell #2: How To Parse A Very Huge File
by marioroy
in thread Threads From Hell #2: How To Search A Very Huge File [SOLVED]
by karlgoethebier
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |