Hello,
I need to read in a csv of about 360.000 lines with date and numerical
values. Attached is a sample excerpt of that file.
So far I did:
CODE
// read in
tic
mydat = csvRead('dat04-2011.csv', ';', ',', 'double', [], [], [], 6);
toc (= 5,213 secs)
mydat = mydat(:,2:6);
tic
: Richard Llom richard.l...@gmail.com
Reply-To: International users mailing list for Scilab.
users@lists.scilab.org
Date: Tuesday, May 20, 2014 2:44 PM
To: users@lists.scilab.org users@lists.scilab.org
Subject: [Scilab-users] Why so slow?
Hello,
I need to read in a csv of about 360.000 lines with date
Hi
The code you provide does not run on my sci 5.5.0
anyway, i would read only the once the matrix, as a string, and then use
csvTextScan on
mydat(:,2:6)
to convert that part to double. Taht already saves time.
in your loop i believe strtod is extremely slow. Again, use csvtextscan