Skip to content

Commit

Permalink
Remove debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
klauspost committed Jul 1, 2024
1 parent 17d61f1 commit 9ce375d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 0 additions & 2 deletions gzhttp/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
package gzhttp

import (
"fmt"
"io"
"net/http"
"strings"
Expand Down Expand Up @@ -125,7 +124,6 @@ func (g *gzRoundtripper) RoundTrip(req *http.Request) (*http.Response, error) {
resp.Uncompressed = true
}
if (decompress || g.withZstd) && asciiEqualFold(resp.Header.Get("Content-Encoding"), "zstd") {
fmt.Println("Decompressing zstd")
resp.Body = &zstdReader{body: resp.Body}
resp.Header.Del("Content-Encoding")
resp.Header.Del("Content-Length")
Expand Down
10 changes: 10 additions & 0 deletions zstd/seqdec_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,16 @@ func sequenceDecs_executeSimple_amd64(ctx *executeAsmContext) bool
//go:noescape
func sequenceDecs_executeSimple_safe_amd64(ctx *executeAsmContext) bool

func (s *sequenceDecs) executeSlices(seqs [][]byte) {
if cap(s.out) < s.seqSize {
s.out = append(s.out, make([]byte, s.seqSize-cap(s.out))...)
}
s.out = s.out[:s.seqSize]
for _, seq := range seqs {
s.out = append(s.out, seq...)
}
}

// executeSimple handles cases when dictionary is not used.
func (s *sequenceDecs) executeSimple(seqs []seqVals, hist []byte) error {
// Ensure we have enough output size...
Expand Down

0 comments on commit 9ce375d

Please sign in to comment.