From ecbfe8dbb3b51a2356ce79e233fbc2ddbdcc5f17 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Sun, 15 Sep 2019 13:39:43 +1000 Subject: [PATCH] Increase lib/cgozstd buffer size from 4K to 64K --- lib/cgozstd/cgozstd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cgozstd/cgozstd.go b/lib/cgozstd/cgozstd.go index 4633624f..07746d1e 100644 --- a/lib/cgozstd/cgozstd.go +++ b/lib/cgozstd/cgozstd.go @@ -161,7 +161,7 @@ func (c *ReaderRecycler) Close() error { // // The zero value is not usable until Reset is called. type Reader struct { - buf [4096]byte + buf [65536]byte i, j uint32 r io.Reader @@ -315,7 +315,7 @@ func (c *WriterRecycler) Close() error { // // The zero value is not usable until Reset is called. type Writer struct { - buf [4096]byte + buf [65536]byte j uint32 w io.Writer level compression.Level