bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/32541] Buffering in OutputStreamWriter speeds up dacapo x


From: robin dot garner at anu dot edu dot au
Subject: [Bug classpath/32541] Buffering in OutputStreamWriter speeds up dacapo xalan
Date: 3 Aug 2007 06:40:40 -0000


------- Comment #4 from robin dot garner at anu dot edu dot au  2007-08-03 
06:40 -------
The Javadoc for OutputStreamWriter says:

"Each invocation of a write() method causes the encoding converter to be
invoked on the given character(s). The resulting bytes are accumulated in a
buffer before being written to the underlying output stream. The size of this
buffer may be specified, but by default it is large enough for most purposes.
Note that the characters passed to the write() methods are not buffered.

For top efficiency, consider wrapping an OutputStreamWriter within a
BufferedWriter so as to avoid frequent converter invocations."

This seems to me to allow us to do buffering.  In any case, this fix only
changes the behaviour for the null conversion case - if we are not allowed to
buffer, then buffering needs to be removed completely.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32541





reply via email to

[Prev in Thread] Current Thread [Next in Thread]