in reply to Re: perl performance vs egrep
in thread perl performance vs egrep
If you're IO bound, you might be better off storing a few dozen lines in a scalar and printing just once every few-dozen iterations instead of on every iteration.
Im confused by this comment. The only reason I can see such a strategy making a difference is that it will reduce the number of print calls. I'd be surprised if user caching is more effective than the caching that perl itself does.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: perl performance vs egrep
by ysth (Canon) on Jan 25, 2005 at 09:32 UTC | |
by demerphq (Chancellor) on Jan 25, 2005 at 17:56 UTC | |
by ysth (Canon) on Jan 25, 2005 at 19:37 UTC |