From 4b2768ea08e31c85ea09b1b183c391aaeb933d6c Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Tue, 15 Dec 2020 09:31:13 -0500 Subject: [PATCH] Load library with pgzip. Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- gob.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gob.go b/gob.go index 39b15ab4ab..907c7befcb 100644 --- a/gob.go +++ b/gob.go @@ -2,12 +2,12 @@ package main import ( "bufio" - "compress/gzip" "encoding/gob" "io" "io/ioutil" _ "net/http/pprof" + "github.com/klauspost/pgzip" "golang.org/x/crypto/blake2b" ) @@ -48,7 +48,7 @@ func DecodeLibrary(rdr io.Reader, gz bool, cb func(*LibraryEntry) error) error { zrdr := ioutil.NopCloser(rdr) var err error if gz { - zrdr, err = gzip.NewReader(bufio.NewReaderSize(rdr, 1<<26)) + zrdr, err = pgzip.NewReader(bufio.NewReaderSize(rdr, 1<<26)) if err != nil { return err } -- 2.30.2