Hi!

I have followed this thread, and one thing strikes me: Are you buffering
in all three cases, 
and the only thing different is the flushing? Looking at code in
FileAppender and 
WriterAppender, I see that you wrap an OutputStreamWriter inside a
BufferedWriter when 
bufferedIO equals true, but when looking at Sun's javadoc (this JDK
1.2.2) I found the 
following in OutputStreamWriter:

"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."

Does not this show that there are already some kind of buffering, and
that is way the test 
show so little improve between buffering/no buffering? I'm no expert,
but isn't the 10-fold 
improvement when you compare writing a single character at a time versus
writing an array of 
say 1024 characters? Please do correct me if I'm completly wrong about
this. I remember I 
learned something about this a couple of years ago... :)

--
Georg


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to