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)
| 295 | // compression. Usually the slight speed improvement is not worth enabling this. |
| 296 | // Can be changed with ResetWithOptions. |
| 297 | func 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. |
no outgoing calls
searching dependent graphs…