<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hello,<br>
<br>
I tried your code in 5.5.1 and the last nightly-build of 6.0: I
see a slowdown of around 175 between old save in 5.5.1 and new
(and only) save in 6.0.<br>
It's really related to the data structure, because we use hdf5
read/write a lot here and did not experience significant slowdowns
using 6.0.<br>
I think the overhead might come to the translation of your fairly
complex variable (a long array of tlist) in the corresponding hdf5
structure.<br>
In the old save, this translation was not necessary.<br>
Maybe you could try to save your data in a different way.<br>
For example:<br>
3) you could save each element of "filters" in a separate file.<br>
2) you could bypass save and directly write your data in a hdf5
file by using h5open(), h5write() directly. It means you need to
write your own load() for your custom file format. But this way,
you can try to find the best way to layout your data in hdf5
format.<br>
3) in addition to 2) you could try to save each entry of your
"filters" array as one dataset in a given hdf5 file.<br>
<br>
Did you search on bugzilla whether this bug was already submitted?<br>
Could you try to report it?<br>
<br>
<br>
Antoine<br>
<br>
Le 15/10/2018 à 10:11, Arvid Rosén a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:8FF26241-EE09-410A-9982-34648E0274FA@softube.com">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier New""
lang="EN-US">/////////////////////////////////<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier New""
lang="EN-US">N = 4;<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier New""
lang="EN-US">n = 10000;<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier New""
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier New""
lang="EN-US">filters = list();<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier New""
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier New""
lang="EN-US">for i=1:n<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier New""
lang="EN-US"> G=syslin('c', rand(N,N), rand(N,1), rand(1,N),
rand(1,1));<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier New""
lang="EN-US"> filters($+1) = G;<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier New""
lang="EN-US">end<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier New""
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier New""
lang="EN-US">tic();<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier New""
lang="EN-US">save('filters.dat', filters);<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier New""
lang="EN-US">ts1 = toc();<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier New""
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier New""
lang="EN-US">tic();<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier New""
lang="EN-US">save('filters.dat', 'filters');<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier New""
lang="EN-US">ts2 = toc();<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier New""
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier New""
lang="EN-US">printf("old save %.2fs\n", ts1);<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier New""
lang="EN-US">printf("new save %.2fs\n", ts2);<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier New""
lang="EN-US">printf("slowdown %.1f\n", ts2/ts1);<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Courier New""
lang="EN-US">/////////////////////////////////</span></p>
</blockquote>
<p><br>
</p>
<pre class="moz-signature" cols="72">--
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
Antoine Monmayrant LAAS - CNRS
7 avenue du Colonel Roche
BP 54200
31031 TOULOUSE Cedex 4
FRANCE
Tel:+33 5 61 33 64 59
email : <a class="moz-txt-link-abbreviated" href="mailto:antoine.monmayrant@laas.fr">antoine.monmayrant@laas.fr</a>
permanent email : <a class="moz-txt-link-abbreviated" href="mailto:antoine.monmayrant@polytechnique.org">antoine.monmayrant@polytechnique.org</a>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
</pre>
</body>
</html>