Re: perl multithreading performance



J. Gleixner wrote:
Another, much easier/faster approach, would be:

grep ' GET ' file | your_script.pl

The earlier you can filter out the work that's needed, the better, and you're not going to get much faster than grep. The more refined you
can make that initial filtering of data to only send lines you're
interested in, to your program, the better.

As Jon Bentley summarised it;

protect expensive tests with cheap tests.

BugBear
.



Relevant Pages