From 3286875a1223e4bd304d6bcc4bb2c463fae762f2 Mon Sep 17 00:00:00 2001 From: Matthias Schneider Date: Wed, 12 Feb 2020 18:04:36 +0100 Subject: [PATCH] godoc: added new Default values for SetConcurrency (#29) it seems that the default was changed and the function documentation was wrong --- gzip.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gzip.go b/gzip.go index 2783744..bb2e339 100644 --- a/gzip.go +++ b/gzip.go @@ -69,8 +69,8 @@ type result struct { // With this you can control the approximate size of your blocks, // as well as how many you want to be processing in parallel. // -// Default values for this is SetConcurrency(250000, 16), -// meaning blocks are split at 250000 bytes and up to 16 blocks +// Default values for this is SetConcurrency(defaultBlockSize, runtime.GOMAXPROCS(0)), +// meaning blocks are split at 1 MB and up to the number of CPU threads // can be processing at once before the writer blocks. func (z *Writer) SetConcurrency(blockSize, blocks int) error { if blockSize <= tailSize {