Skip to content

Commit 9ce375d

Browse files
committed
Remove debug print
1 parent 17d61f1 commit 9ce375d

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

gzhttp/transport.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
package gzhttp
66

77
import (
8-
"fmt"
98
"io"
109
"net/http"
1110
"strings"
@@ -125,7 +124,6 @@ func (g *gzRoundtripper) RoundTrip(req *http.Request) (*http.Response, error) {
125124
resp.Uncompressed = true
126125
}
127126
if (decompress || g.withZstd) && asciiEqualFold(resp.Header.Get("Content-Encoding"), "zstd") {
128-
fmt.Println("Decompressing zstd")
129127
resp.Body = &zstdReader{body: resp.Body}
130128
resp.Header.Del("Content-Encoding")
131129
resp.Header.Del("Content-Length")

zstd/seqdec_amd64.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,16 @@ func sequenceDecs_executeSimple_amd64(ctx *executeAsmContext) bool
341341
//go:noescape
342342
func sequenceDecs_executeSimple_safe_amd64(ctx *executeAsmContext) bool
343343

344+
func (s *sequenceDecs) executeSlices(seqs [][]byte) {
345+
if cap(s.out) < s.seqSize {
346+
s.out = append(s.out, make([]byte, s.seqSize-cap(s.out))...)
347+
}
348+
s.out = s.out[:s.seqSize]
349+
for _, seq := range seqs {
350+
s.out = append(s.out, seq...)
351+
}
352+
}
353+
344354
// executeSimple handles cases when dictionary is not used.
345355
func (s *sequenceDecs) executeSimple(seqs []seqVals, hist []byte) error {
346356
// Ensure we have enough output size...

0 commit comments

Comments
 (0)