-
Notifications
You must be signed in to change notification settings - Fork 21
Description
Is your feature request related to a problem?
YES
Please describe.
Dear @Senipah, it’s me, AGAIN! I was testing the CSV Interface class trying to find the memory limits of it and, in the same path of work, check if the change from String
array to Variant
jagged array has the potential to make the class run out of memory for a CSV file of couple of megabytes of size.
I used both your solution and sdkn's as benchmarks. The test’s objective was invoking the import procedure, bypassing the result in the case of @sdkn104, and avoiding copies of arrays in the case of your project and mine, so that the imported data was only present in the class members.
As a result of the above, I get a surprising error when invoke yours FromCSVString
method. It’s about the error 14: “Out of string space”.
Describe the solution you'd like
The question here is only one: it’s possible to deal with the memory consumption, when working with String
data type, for your solution?
Additional context
Attached to this I let you the file used as “guinea pig” (Demo_1.6MM_records.zip), hoping you can find the error source, and, additional to that, some screen shoots with the memory usage for both, @sdkn104 and mine, solutions.
NOTE: due to file size, the Demo_1.6MM_records.zip contains a .7z file inside.