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 <[email protected]>: > 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 >
