HDF5 load/save is super slow for nested lists
Reported by Arvid
BUG DESCRIPTION:
----------------
Saving (and probably also loading) long lists of tlist objects to file, using load and save commands, is very slow using the current HDF5 implementation. The old Scilab 5 way of saving can be 100x faster, and also produce a factor of 10 smaller file size. This makes existing code and data unusable in practice, and it is difficult to find an easy workaround.
ERROR LOG:
----------
HOW TO REPRODUCE THE BUG:
-------------------------
N = 4;
n = 10000;
filters = list();
for i=1:n
G=syslin('c', rand(N,N), rand(N,1), rand(1,N), rand(1,1));
filters($+1) = G;
end
ver=getversion('scilab');
if ver(1)<6 then
tic();
save('filters_old.dat', filters);
ts1 = toc();
else
tic();
save('filters_new.dat', 'filters');
ts1 = toc();
end
printf("Time for save %.2fs\n", ts1);
OTHER INFORMATION:
------------------