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)
| 283 | // Default value depends on the compression level selected. |
| 284 | // Can be changed with ResetWithOptions. |
| 285 | func 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 |
no outgoing calls
searching dependent graphs…