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

Function WriterBestCompression

s2/writer.go:941–946  ·  view source on GitHub ↗

WriterBestCompression will enable better compression. EncodeBest compresses better than Encode but typically with a big speed decrease on compression.

()

Source from the content-addressed store, hash-verified

939// EncodeBest compresses better than Encode but typically with a
940// big speed decrease on compression.
941func WriterBestCompression() WriterOption {
942 return func(w *Writer) error {
943 w.level = levelBest
944 return nil
945 }
946}
947
948// WriterUncompressed will bypass compression.
949// The stream will be written as uncompressed blocks only.

Callers 8

mainFunction · 0.92
mainFunction · 0.92
testFileFunction · 0.85
TestDataRoundtripsFunction · 0.85
testOptionsFunction · 0.85
TestBigRegularWritesFunction · 0.85
TestBigEncodeBufferFunction · 0.85
TestBigEncodeBufferSyncFunction · 0.85

Calls

no outgoing calls

Tested by 6

testFileFunction · 0.68
TestDataRoundtripsFunction · 0.68
testOptionsFunction · 0.68
TestBigRegularWritesFunction · 0.68
TestBigEncodeBufferFunction · 0.68
TestBigEncodeBufferSyncFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…