in reply to perl performance vs egrep
my $re = qr/^CPXX1|^KLXX1|^KMXX1|^MEXX1|^PAXX1|^PMXX1|^SLXX1|^SZXX1|^WXXX1|^YZXX1/;
...
print OFILE unless /$re/;
...
I think other monks have already suggested using a buffer to reduce the number of write, this would probably give a fairly major improvement.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl performance vs egrep
by holli (Abbot) on Jan 23, 2005 at 17:56 UTC | |
|
Re^2: perl performance vs egrep
by Tanktalus (Canon) on Jan 23, 2005 at 17:55 UTC |