groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cédric Champeau <cedric.champ...@gmail.com>
Subject Re: groovy git commit: Refine DgmConverter to gain better IO performance
Date Tue, 12 Dec 2017 15:48:37 GMT
Buffered writing only makes sense if the writes are smaller than the buffer
size, and that you do multiple writes. This is not the case here, so
buffered won't help.

2017-12-12 16:34 GMT+01:00 Daniel.Sun <sunlan@apache.org>:

> Hi  Cédric,
>
>       > Using a buffered writer is actually slower when you know the bytes
> to write.
>       To be frank, it's hard for me to believe... because
> BufferedOutputStream will keep the bytes to output util the buffer is full,
> so it can reduce the times to access the disk(As we all know, accessing
> disk
> is much slower than accessing memory).
>
> Cheers,
> Daniel.Sun
>
>
>
> --
> Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html
>

Mime
View raw message