in reply to Re: Code Optimization
in thread Code Optimization
Originally, I had the program open the file in the manner that you have coded (Once only) however the amount of data in question is massive. This caused the program to use up all the memory of the server I am using, and the OS would randomly kill the program in favor of OS processes. I, perhaps incorrectly, favored the line by line approach because on runtime, the program only uses 0.3% of the RAM, instead of 100%. Perhaps it might be worthwhile to break up the files into chunks and read in maybe 100,000 or so lines at a time?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Code Optimization
by kcott (Archbishop) on Sep 10, 2013 at 10:28 UTC | |
by azheid (Sexton) on Sep 12, 2013 at 19:05 UTC |