Increase lib/cgozstd buffer size from 4K to 64K

This commit is contained in:
Nigel Tao committed 2019-09-15 13:39:43 +10:00
1 parent a108ec9742
commit ecbfe8dbb3
1 file changed
+2 -2
+2 -2
View File
@@ -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