Skip to content

Commit

Permalink
Decrease penalty slightly.
Browse files Browse the repository at this point in the history
  • Loading branch information
klauspost committed Jan 16, 2020
1 parent 182d024 commit 4c57fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flate/deflate.go
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ func (d *compressor) init(w io.Writer, level int) (err error) {
d.fill = (*compressor).fillBlock
d.step = (*compressor).store
case level == ConstantCompression:
d.w.logNewTablePenalty = 4
d.w.logNewTablePenalty = 5
d.window = make([]byte, maxStoreBlockSize)
d.fill = (*compressor).fillBlock
d.step = (*compressor).storeHuff
Expand Down

0 comments on commit 4c57fdd

Please sign in to comment.