Hi everyone,<br><br>Bio-Formats has classes known as RandomAccessInputStream and RandomAccessOutputStream, which are intended to allow random access behavior in a variety of contexts, including streams (with the StreamHandle class). All of this logic lives in the loci.common package of loci-common.jar. Unfortunately, StreamHandle is an abstract class and there is not a general-purpose concrete implementation for streams. If there were, we could try using a StreamHandle with a BufferedOutputStream of sufficient buffer size, and see if it made any difference for Rubén.<br>
<br>Melissa, any thoughts on how difficult it would be to make StreamHandle into a concrete class, with a constructor that accepts a DataInputStream as argument, and one that accepts a DataOutputStream?<br><br>-Curtis<br>
<br><div class="gmail_quote">On Mon, Jun 20, 2011 at 2:37 PM, Gregory Jefferis <span dir="ltr"><<a href="mailto:jefferis@mrc-lmb.cam.ac.uk">jefferis@mrc-lmb.cam.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<u></u>
<div bgcolor="#ffffff" text="#000000"><div class="im">
On 2011-06-20 18:02, Johannes Schindelin wrote:
<blockquote type="cite">
<pre>Maybe the random access could be buffered with a configurable window size?
That could improve performance and be a more general solution..</pre>
</blockquote></div>
This seems like a good idea. For comparison I remember a case for a
Fiji plugin I wrote (NrrdReader) that when reading compressed files
from network drives (SMB) adding a fairly small buffer (50k) could
result in a several fold increase in read speed. <br>
<br>
Also was curious about the ratio of bulk write speed to OME tiff
write speed in OP (Ruben's) case.<br>
<br>
Best,<br>
<br>
Greg.<br>
<br>
<br>
<div>-- <br>
Gregory Jefferis, PhD
<a href="mailto:jefferis@mrc-lmb.cam.ac.uk" target="_blank">jefferis@mrc-lmb.cam.ac.uk</a><br>
Division of Neurobiology LMB Lab: +44 (0)1223
252943<br>
MRC Laboratory of Molecular Biology, LMB Office:+44 (0)1223
252944<br>
Hills Road, LMB Fax: +44 (0)1223
402310<br>
Cambridge, CB2 0QH, UK. <br>
<br>
<a href="http://www2.mrc-lmb.cam.ac.uk/group-leaders/h-to-m/g-jefferis" target="_blank">http://www2.mrc-lmb.cam.ac.uk/group-leaders/h-to-m/g-jefferis</a><br>
<a href="http://www.neuroscience.cam.ac.uk/directory/profile.php?gsxej2" target="_blank">http://www.neuroscience.cam.ac.uk/directory/profile.php?gsxej2</a><br>
<a href="http://flybrain.stanford.edu" target="_blank">http://flybrain.stanford.edu</a><br>
<br>
</div>
</div>
<br>_______________________________________________<br>
ome-devel mailing list<br>
<a href="mailto:ome-devel@lists.openmicroscopy.org.uk">ome-devel@lists.openmicroscopy.org.uk</a><br>
<a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel" target="_blank">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel</a><br>
<br></blockquote></div><br>