xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: Auto-buffering in BaseSerializer
Date Sun, 28 Nov 1999 00:31:02 GMT
Assaf Arkin wrote:
> 
> I had a bad experience with this in the past. Someone did a performance
> test on OpenXML without buffering the input, the parser went
> exponentially slow as the file size increased. Ever since I always
> buffer.
> 
> And yes, my applications tend to do double and triple buffering because
> I can never expect a buffer to be done on either side of a library call.
> But it's still way faster than having no buffering ;-)

What about 

  writer = (writer instanceof BufferedWriter) ? writer : new
BuffereWriter(writer);

this is _way_ better than triple buffering, IMO.

Stefano.



Mime
View raw message