in reply to Enquiry on memory usage
I would like to know is this script able to run on the server without overloading?
Yes, easily. Your data will require ~1.8GB of memory.
Or is there any other better way of doing this without putting much load on the memory?
Possibly. You could sort all 3 files and read them in parallel, and output the information line by line. This would use minimal memory and isn't difficult to program, though there are a lot of edge cases that are easy to get wrong.
But given that your current solution will use less than 3% of the server's capacity, or 3.5% of your maximum allocation, there seems no reason to move away from the simple direct approach.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Enquiry on memory usage
by faozhi (Acolyte) on May 08, 2009 at 08:09 UTC | |
by BrowserUk (Patriarch) on May 08, 2009 at 09:17 UTC | |
by faozhi (Acolyte) on May 08, 2009 at 12:39 UTC |