Skip to content

Commit

Permalink
zstd: Set allLitEntropy true in default configuration (#286)
Browse files Browse the repository at this point in the history
Fixes #285
  • Loading branch information
klauspost authored Sep 20, 2020
1 parent a2bf5b1 commit 06dfa05
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions zstd/encoder_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ type encoderOptions struct {
func (o *encoderOptions) setDefault() {
*o = encoderOptions{
// use less ram: true for now, but may change.
concurrent: runtime.GOMAXPROCS(0),
crc: true,
single: nil,
blockSize: 1 << 16,
windowSize: 8 << 20,
level: SpeedDefault,
concurrent: runtime.GOMAXPROCS(0),
crc: true,
single: nil,
blockSize: 1 << 16,
windowSize: 8 << 20,
level: SpeedDefault,
allLitEntropy: true,
}
}

Expand Down

0 comments on commit 06dfa05

Please sign in to comment.