Deleting rows or columns from a matrix is slow
Reported by Vincent Azzopardi
BUG DESCRIPTION:
----------------
Partial emptying of a matrix in Scilab 6 is much more longer than in Scilab 5.5.2.
For big matrix (length ~ 100000), the time ratio is more than 10000.
This functionnaly has become less efficient in Scilab 6 than in Scilab 5.5.2.
This is a problem whereas we expect Scilab 6 helps to reduce computation time.
ERROR LOG:
----------
There is no error.
HOW TO REPRODUCE THE BUG:
-------------------------
X = rand(1,100000);
tic();
for (i = 1:100)
X1 = X;
X1(:) = [];
end
T = toc();
mprintf("\n Time to empty X = %.3g seconds", T);
In Scilab 6, I found T = 333 seconds
In Scilab 5.5.2, I found T = 0.03 seconds
OTHER INFORMATION:
------------------