MCPcopy Create free account
hub / github.com/klauspost/compress / overlapSize

Method overlapSize

zstd/encoder_options.go:362–371  ·  view source on GitHub ↗

overlapSize returns the overlap prefix size for parallel jobs.

()

Source from the content-addressed store, hash-verified

360
361// overlapSize returns the overlap prefix size for parallel jobs.
362func (o *encoderOptions) overlapSize() int {
363 switch o.level {
364 case SpeedBestCompression:
365 return o.windowSize / 2
366 case SpeedBetterCompression:
367 return o.windowSize / 4
368 default:
369 return o.windowSize / 8
370 }
371}
372
373// WithEncoderDict allows to register a dictionary that will be used for the encode.
374//

Callers 1

ResetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected