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

Function WithNoEntropyCompression

zstd/encoder_options.go:297–302  ·  view source on GitHub ↗

WithNoEntropyCompression will always skip entropy compression of literals. This can be useful if content has matches, but unlikely to benefit from entropy compression. Usually the slight speed improvement is not worth enabling this. Can be changed with ResetWithOptions.

(b bool)

Source from the content-addressed store, hash-verified

295// compression. Usually the slight speed improvement is not worth enabling this.
296// Can be changed with ResetWithOptions.
297func WithNoEntropyCompression(b bool) EOption {
298 return func(o *encoderOptions) error {
299 o.noEntropy = b
300 return nil
301 }
302}
303
304// WithSingleSegment will set the "single segment" flag when EncodeAll is used.
305// If this flag is set, data must be regenerated within a single continuous memory segment.

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…