I was wondering if anyone had any advice for me in how I can speed up the reading in and processing of several large ASCII data files.
What I'm trying to do is read in 40 or so 200mb+ files, take the data they contain and dump it into a large array of objects.
What I'm currently doing is pulling my files in line by line using getline() and then processing the resulting strings using a stringstream. The resulting variables are then added to my objects.
The whole process isn't exactly slow, but it can take 30 seconds or so for one file and I generate a fair number.
Thanks for any help you can give me!
What I'm trying to do is read in 40 or so 200mb+ files, take the data they contain and dump it into a large array of objects.
What I'm currently doing is pulling my files in line by line using getline() and then processing the resulting strings using a stringstream. The resulting variables are then added to my objects.
The whole process isn't exactly slow, but it can take 30 seconds or so for one file and I generate a fair number.
Thanks for any help you can give me!