in reply to Reduce CPU utilization time in reading file using perl
I agree with BrowserUK that loading such a huge file into memory even before you start reading the first line is a no go. You really want to iterate line by line over the file to reduce the memory used. Having said that, it is unlikely you will be able to fit 5 million megabytes into a hash.
On your CPU usage question, how many CPUs/cores do you have?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reduce CPU utilization time in reading file using perl
by madtoperl (Hermit) on Sep 28, 2013 at 13:21 UTC | |
by Laurent_R (Canon) on Sep 28, 2013 at 14:35 UTC | |
by madtoperl (Hermit) on Sep 30, 2013 at 06:43 UTC |