From 962a428cf95ef8776296bb83eabc28537beda3dd Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Wed, 19 Nov 2025 08:00:00 +0800 Subject: Switch back to internal zlib for loose objects too Still marginally less overhead due to pooling --- internal/zlibx/reader.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'internal/zlibx/reader.go') diff --git a/internal/zlibx/reader.go b/internal/zlibx/reader.go index 80bbbb58..9a4b4315 100644 --- a/internal/zlibx/reader.go +++ b/internal/zlibx/reader.go @@ -3,11 +3,14 @@ // license that can be found in the LICENSE file. /* -Package zlib implements reading and writing of zlib format compressed data, +Package zlibx implements reading of zlib format compressed data, as specified in RFC 1950. This package differs from the standard library's compress/zlib package -in that it pools readers to reduce allocations. Writers are unchanged. +in that it pools readers to reduce allocations. Writing is unsupported. + +THis package will likely be refactorered much more for our specific +use case of only doing full decompressions to byte slices. Note that closing the reader causes it to be returned to a pool for reuse. Therefore, the caller must not retain references to the -- cgit v1.3.1-10-gc9f91