MCPcopy
hub / github.com/klauspost/compress / ZstdCompressionLevel

Function ZstdCompressionLevel

gzhttp/compress.go:810–814  ·  view source on GitHub ↗

ZstdCompressionLevel sets the zstd compression level. Levels are: 1=SpeedFastest, 2=SpeedDefault, 3=SpeedBetterCompression, 4=SpeedBestCompression Default is SpeedFastest (1).

(level int)

Source from the content-addressed store, hash-verified

808// Levels are: 1=SpeedFastest, 2=SpeedDefault, 3=SpeedBetterCompression, 4=SpeedBestCompression
809// Default is SpeedFastest (1).
810func ZstdCompressionLevel(level int) option {
811 return func(c *config) {
812 c.zstdLevel = level
813 }
814}
815
816// ZstdImplementation changes the implementation of ZstdWriter.
817// The default implementation is backed by github.com/klauspost/compress/zstd

Callers 1

TestZstdLevelsFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestZstdLevelsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…