mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-16 16:26:16 +02:00
use default compression, use default concurrency
This commit is contained in:
parent
6d3c4b33cd
commit
c8defaf4b2
1 changed files with 1 additions and 3 deletions
|
@ -152,8 +152,7 @@ func encodeQueryStringV1(values url.Values) []byte {
|
||||||
const zstdWindowSize = 8 << 10 // 8kiB
|
const zstdWindowSize = 8 << 10 // 8kiB
|
||||||
|
|
||||||
var zstdEncoder, _ = zstd.NewWriter(nil,
|
var zstdEncoder, _ = zstd.NewWriter(nil,
|
||||||
zstd.WithEncoderLevel(zstd.SpeedBestCompression),
|
zstd.WithEncoderLevel(zstd.SpeedDefault),
|
||||||
zstd.WithEncoderConcurrency(1),
|
|
||||||
zstd.WithWindowSize(zstdWindowSize),
|
zstd.WithWindowSize(zstdWindowSize),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -166,7 +165,6 @@ func decodeQueryStringV1(raw []byte) (url.Values, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var zstdDecoder, _ = zstd.NewReader(nil,
|
var zstdDecoder, _ = zstd.NewReader(nil,
|
||||||
zstd.WithDecoderConcurrency(1),
|
|
||||||
zstd.WithDecoderLowmem(true),
|
zstd.WithDecoderLowmem(true),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue