in reply to Re: Optimizing I/O intensive subroutine
in thread Optimizing I/O intensive subroutine

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)

Replies are listed 'Best First'.
Re^3: Optimizing I/O intensive subroutine
by chromatic (Archbishop) on Oct 26, 2012 at 17:15 UTC

    Ah, I didn't see there was a second image. Good catch.