Using a set of ASCII data files, I have written PERL code that process the data to produce output.
The first time I wrote the code, the data was processed in 20 minutes.
Next I modified the same code where the only change was that I stored hashes until I processed all files instead of clearing them out after each data file processed. This extended the time to process the same data to several hours.
Any idea as to why this would happen?
The first time I wrote the code, the data was processed in 20 minutes.
Next I modified the same code where the only change was that I stored hashes until I processed all files instead of clearing them out after each data file processed. This extended the time to process the same data to several hours.
Any idea as to why this would happen?