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.
In reply to Re: Enquiry on memory usage
by BrowserUk
in thread Enquiry on memory usage
by faozhi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |