[Users-fr] fscanfMat & fprintfMat
Eric levillain (Gmail)
eric.levillain.perso at gmail.com
Jeu 7 Fév 11:56:35 CET 2013
BUG: Compared to Scilab 5.3.3, fscanfMat and fprintfMat are very slow
under Scilab 5.4.0.
Hello,
I performed some tests on Scilab 5.3.3 and Scilab 5.4.0 with this
following script:
***************************
clc;
clear;
A = ones(1000,1000)+0.1;
tic();
fprintfMat("Matrix.txt", A, "%lg");
s1 = toc();
disp(s1);
fscanfMat("Matrix.txt", "%lg");
s2 = toc();
disp(s2);
***************************
Output on WIN 7 x64:
On Scilab 5.3.3: s1 = 0.748 and s2 = 2.496
On Scilab 5.4.0: s1 = 1.279 and s2 = 39.812 !!!
***************************
Output on LINUX x64
On Scilab 5.3.3: s1 = 0.594 and s2 = 2.422
On Scilab 5.4.0: s1 = 0.658 and s2 = 2.473
***************************
In conclusion, this bug depends on the OS.
Do you know why?
Sincerely yours
Eric
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: <https://lists.scilab.org/pipermail/users-fr/attachments/20130207/fc4a7e2f/attachment.htm>
Plus d'informations sur la liste de diffusion users-fr