in reply to Perl Filehandle?
Do all those arrays need to remain in memory for the duration of the program?
Not knowing what your functions do makes it hard to offer suggestions.
Have you tried moving patch_stockfiles/delete_duplicates/fix_format/output inside the initial input loop and eliminating the array entirely?
Based on those subroutine names, it seems as if at least some of that can be done from inside the loop.
As is, it seems as if you're iterating over that huge array 4 separate times after creating it.
My suggestion would be to find a way to process this data piecewise (or in tandem), rather than as a whole. Is this possible?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl Filehandle?
by Smersh2000 (Initiate) on Nov 14, 2006 at 20:47 UTC | |
by wojtyk (Friar) on Nov 15, 2006 at 00:17 UTC |