Memory usage of repeated Headers #63
Unanswered
wayneseguin
asked this question in
Q&A
Replies: 1 comment
-
|
I know this is old, but I figure I might as well provide a current answer for anyone who is looking. In CsvReader you can see that the header array is generated once and then the same reference is passed to each ICsvLine. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When parsing CSV files using something like ReadFromStream or any variant, it creates a list of ICsvLine. Each ICsvLine has a Header object which is a string[]. Are these all references to a single string[]? Or are there "n" copies of the same header object, one per ICsvHeader. I'm loading some very large files and memory usage is massive. Wondering if it is just the data or if repeated headers are part of the problem. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions