-- Bug description --
Very low performance of mfprintf when writing a file on a network.
fprintfMat has correct performance in any case.
Using scilab5.2.2 of scilab5.3.0beta4 makes no difference.
// On the local hard drive :
chdir("D:\PROGRAM\scilab-5.2.2");
A1 = rand(27000,1) ;
A2 = rand(27000,1) ;
A3 = rand(27000,1) ;
A4 = rand(27000,1) ;
A5 = rand(27000,1) ;
A6 = rand(27000,1) ;
A7 = rand(27000,1) ;
A8 = rand(27000,1) ;
A9 = rand(27000,1) ;
A10 = rand(27000,1) ;
A11 = rand(27000,1) ;
A12 = rand(27000,1) ;
A13 = rand(27000,1) ;
tic
fprintfMat("toto.txt",[A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13],"%.5f");
toc
ans =
0.563
fd = mopen("toto2.txt", "w");
tic
mfprintf(fd,"%d %.1f %d %d %.4f %.4f %d %.4f %.4f %.4f %d %.4f %.4f\n", ...
A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13 );
toc
mclose(fd);
ans =
1.
// On a network's hard drive :
chdir("E:\");
A1 = rand(27000,1) ;
A2 = rand(27000,1) ;
A3 = rand(27000,1) ;
A4 = rand(27000,1) ;
A5 = rand(27000,1) ;
A6 = rand(27000,1) ;
A7 = rand(27000,1) ;
A8 = rand(27000,1) ;
A9 = rand(27000,1) ;
A10 = rand(27000,1) ;
A11 = rand(27000,1) ;
A12 = rand(27000,1) ;
A13 = rand(27000,1) ;
tic
fprintfMat("toto.txt",[A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13],"%.5f");
toc
ans =
1.406
fd = mopen("toto2.txt", "w");
tic
mfprintf(fd,"%d %.1f %d %d %.4f %.4f %d %.4f %.4f %.4f %d %.4f %.4f\n", ...
A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13 );
toc
ans =
34.735
mclose(fd);
-- Scilab error message --
-- How to reproduce the bug --