On Sun, Jan 27, 2002 at 04:51:18PM +0000, Richard Boulton wrote:
>
> I modified the applications so that it explicitly reads in blocks of 8k,
> (rather than using a BufferedInputStream, which I would have thought
> would internally buffer, but didn't seem to).
BufferInputStream certainly contains a byte[]-based buffer, with a
default size of 2048 bytes. It may be this, or possibly some
inefficiency in its buffer code, that's causing the problem, I
guess. I haven't got source for post-JDK 1.1, and haven't actually
checked the code in detail myself, but the classes involved were
written by one of the better Sun Java engineers, so I'd be inclined to
trust it.
J
-- /--------------------------------------------------------------------------\ James Aylett zap.tartarus.org james@tartarus.org footlights.org_______________________________________________ Snowball-discuss mailing list Snowball-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/snowball-discuss
This archive was generated by hypermail 2.1.3 : Thu Sep 20 2007 - 12:02:40 BST