DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19474>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19474

Performance: Serializer buffers Outupt when its output is to 
BufferedServletOutputStream

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |VERIFIED



------- Additional Comments From [EMAIL PROTECTED]  2003-08-13 15:52 -------
Subsequent work has change the behavior to always buffer UTF-8 output, even 
with BufferedServletOutputStream (or other Buffered writers).

The reason is that the buffering is more than just buffering, it is also 
converting the input characters to output bytes.  Letting the writer do this 
conversion, with multiple method calls on the writer is slower than a loop in 
the buffering code which does the conversion into an internal byte array, and 
occassional calls to the writer with the array of bytes.

Why it is faster is not entirely clear, perhaps it is the extra method calls, 
perhaps it is because of thread safety in the java.io.Writer.

But this is bug is not an issue anymore.
Regards,
Brian Minchau

Reply via email to