The latter suggestion is more promising.
Looking at the timings, the bulk of the time is in the split (20.4 s) and the push @lines (16.2s)
In reply to Re^2: Optimizing I/O intensive subroutine
by Anonymous Monk
in thread Optimizing I/O intensive subroutine
by hperange
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |