Skip to content

Commit

Permalink
use default compression, use default concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
calebdoxsey committed Oct 31, 2023
1 parent 6d3c4b3 commit c8defaf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/hpke/url.go
Expand Up @@ -152,8 +152,7 @@ func encodeQueryStringV1(values url.Values) []byte {
const zstdWindowSize = 8 << 10 // 8kiB

var zstdEncoder, _ = zstd.NewWriter(nil,
zstd.WithEncoderLevel(zstd.SpeedBestCompression),
zstd.WithEncoderConcurrency(1),
zstd.WithEncoderLevel(zstd.SpeedDefault),
zstd.WithWindowSize(zstdWindowSize),
)

Expand All @@ -166,7 +165,6 @@ func decodeQueryStringV1(raw []byte) (url.Values, error) {
}

var zstdDecoder, _ = zstd.NewReader(nil,
zstd.WithDecoderConcurrency(1),
zstd.WithDecoderLowmem(true),
)

Expand Down

0 comments on commit c8defaf

Please sign in to comment.