Buffer your output using bufio.NewWriterSize.

Using a buffered channel gives nothing: is the producers are faster, then the 
buffers will always be full, the bottleneck is the ouput writer.

If the consumer is faster, then you have no problems :)

Buffering the output speeds things up as the main bottleneck used to be the 
write syscall.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to