<div dir="ltr">Interesting! Using sync() as you suggested makes every write slower,  and it decreases the time difference between save and savez,<div>so maybe I was observing the 10 times difference because the file system buffers were being flushed immediately after a call to savez, but not right after a call to np.save.</div>
<div><br></div><div>I think your workaround might help, but a better solution would be to not use Python's zipfile module at all. This would make it possible to, say, let the user choose the checksum algorithm or to turn that off.</div>
<div>Or maybe the compression stuff makes this route too complicated to be worth the trouble? (after all, the zip format is not that hard to understand)</div><div><br></div><div>Gilberto     </div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Apr 17, 2014 at 6:45 PM, Valentin Haenel <span dir="ltr"><<a href="mailto:valentin@haenel.co" target="_blank">valentin@haenel.co</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<div class=""><br>
* Valentin Haenel <<a href="mailto:valentin@haenel.co">valentin@haenel.co</a>> [2014-04-17]:<br>
</div><div class="">> As part of bloscpack.sysutil I have wrapped this to be available from<br>
> Python (needs root though). So, to re-rurn the benchmarks, doing each<br>
> one twice:<br>
<br>
</div>Actually, I just realized, that doing a ``sync`` doesn't require root.<br>
<br>
my bad,<br>
<div class="HOEnZb"><div class="h5"><br>
V-<br>
_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
</div></div></blockquote></div><br></div>