|Keep It Simple, Stupid|
Perl Code Runs Extremely Slowby garbage777 (Acolyte)
|on Jun 13, 2006 at 20:00 UTC||Need Help??|
garbage777 has asked for the
wisdom of the Perl Monks concerning the following question:
Hi Monks, I have written a small script to process to files (which are of different file size each) the following way -
1. Open file 1 and create a hash of (key, value) pairs.
2. Open file 2, create a hash of (key, value) pairs.
3. Using the keys in Step.1, print the value from the hash created in Step.2.
To perform these three steps, I am using the following code (please excuse any inadvertent mistake, this is only my second Perl program).
When I execute this code on File1(of size 3.4 Gb) and File2 of size (1.4 Gb), the code runs extremely slow.
Can any Monks kindly suggest anyway to improve run time performance?
I appreciate it very much.