I wrote a simple program in c++ that does some calculations, outputs a number to a textfile, and repeats. Several million times. The final text file was around 215 megabytes, yet when I opened it, gedit took over 5 minutes to open all of it, and I went over my 4 Gb of ram and into the linux swap. Why does this happen when the original file size is only 200 MB?
|
feedback
|
migrated from stackoverflow.com Mar 9 '11 at 2:44
This question came from our site for professional and enthusiast programmers.
|
Searching around on Google,
I would try opening the files in something like
| |||||||
feedback
|
geditis the one using up high amounts of memory, not your own program, right? – Dre Mar 9 '11 at 2:30