x := gzip.NewWriter(outputFile)outBuf := bufio.NewWriter(x)w := csv.NewWriter(outBuf)
The concept of csv.Writer(gzip.Writer(os.File)) is ok.
Compression is cpu bound, and csv.Writer may need some optimization.
But first measure, use testing package's benchmark functionality.
Thanks, Tomas!Very helpful!Do you know if it's important to run Flush() on the gzip writer?