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

Function WithAllLitEntropyCompression

zstd/encoder_options.go:285–291  ·  view source on GitHub ↗

WithAllLitEntropyCompression will apply entropy compression if no matches are found. Disabling this will skip incompressible data faster, but in cases with no matches but skewed character distribution compression is lost. Default value depends on the compression level selected. Can be changed with R

(b bool)

Source from the content-addressed store, hash-verified

283// Default value depends on the compression level selected.
284// Can be changed with ResetWithOptions.
285func WithAllLitEntropyCompression(b bool) EOption {
286 return func(o *encoderOptions) error {
287 o.customALEntropy = true
288 o.allLitEntropy = b
289 return nil
290 }
291}
292
293// WithNoEntropyCompression will always skip entropy compression of literals.
294// This can be useful if content has matches, but unlikely to benefit from entropy

Callers 3

getConcBlockOptsFunction · 0.85
getEncOptsFunction · 0.85

Calls

no outgoing calls

Tested by 3

getConcBlockOptsFunction · 0.68
getEncOptsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…