I have to parse a CSV file, filter out lines, add values and store it to disk again. My idea is to create a struct for the values of each line:
Then I want to initialize LineValue instances with values from the file (reding it via StreamReader.ReadLine()) and put them into a List<LineValue>.
The generic List is a reference type so it is put onto the heap. But where do the LineValue instances go? I am afraid this is gonna cause a big GC job after doing this on a file with thousands of lines.
Is there a better solution in terms of performance?
Thx for your help,
View Complete Post