Re: perl multithreading performance
- From: bugbear <bugbear@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 28 Aug 2008 17:07:39 +0100
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
.
- References:
- perl multithreading performance
- From: dniq00
- Re: perl multithreading performance
- From: J. Gleixner
- perl multithreading performance
- Prev by Date: Re: perl multithreading performance
- Next by Date: Re: subprocesses lifecycle
- Previous by thread: Re: perl multithreading performance
- Next by thread: Truncate an array when you have a ref to it?
- Index(es):
Relevant Pages
|