<br><br><div class="gmail_quote">On Wed, Nov 18, 2009 at 3:10 AM, Nicolas Cellier <span dir="ltr">&lt;<a href="mailto:nicolas.cellier.aka.nice@gmail.com">nicolas.cellier.aka.nice@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I just gave a try to the BufferedFileStream.<br>
As usual, code is MIT.<br>
Implementation is rough, readOnly, partial (no support for basicNext<br>
crap &amp; al), untested (certainly has bugs).<br>
Early timing experiments have shown a 5x to 7x speed up on [stream<br>
nextLine] and [stream next] micro benchmarks<br>
See class comment of attachment<br>
<br>
Reminder: This bench is versus StandardFileStream.<br>
StandardFileStream is the &quot;fast&quot; version, CrLf anf MultiByte are far worse!<br>
This still let some more room...<br>
<br>
Integrating and testing a read/write version is a lot harder than this<br>
experiment, but we should really do it.<br></blockquote><div><br></div><div>Just want to wish you every encouragement!  This is *really* useful work.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<font color="#888888"><br>
Nicolas<br>
</font><br><br>
<br></blockquote></div><br>