We have an interface that takes a ‘multi-row’ CSV file and loads this into an XML structure. I am using the CSV package to sensibly split the CSV file and keep my code ‘simple’.
In testing (and not caring that the output is different!) with 10 data files, if I change
set mySplitList [csv::split [msgget $aMsgId]]
to
set mySplitList [split [msgget $aMsgId] ,]
there is a reduction in memory usage of about 1 meg, so the CSV package ‘internals’ appear to be at fault.
Has anyone else used the CSV package, is there a cleanup operation I should be completing?
Thanks.