From 28279b5e717d59d01609e79bd14ff81f933bbde3 Mon Sep 17 00:00:00 2001 From: Philip O'Toole Date: Fri, 14 Jul 2023 11:02:20 -0400 Subject: [PATCH] Favor speed over space --- command/chunking/chunker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/chunking/chunker.go b/command/chunking/chunker.go index 62517452..552a2350 100644 --- a/command/chunking/chunker.go +++ b/command/chunking/chunker.go @@ -26,7 +26,7 @@ var bufferPool = sync.Pool{ // Define a sync.Pool to pool the gzip writers. var gzipWriterPool = sync.Pool{ New: func() interface{} { - gw, err := gzip.NewWriterLevel(nil, gzip.BestCompression) + gw, err := gzip.NewWriterLevel(nil, gzip.BestSpeed) if err != nil { panic(fmt.Sprintf("failed to create gzip writer: %s", err.Error())) }