diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-02-03 09:27:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-03 09:27:58 -0500 |
commit | 5e7d6e52dd8ac8f7e213cde7b98f270c77608523 (patch) | |
tree | cfc80de469cb835c603339f8eb5f6ddd035e2958 /vendor/github.com/klauspost/compress/flate/deflate.go | |
parent | 227d8815806fe63d07433707a356eb2e8c011f1e (diff) | |
parent | 94453c85c78908096764f8c0cb4cf72a470c182b (diff) | |
download | podman-5e7d6e52dd8ac8f7e213cde7b98f270c77608523.tar.gz podman-5e7d6e52dd8ac8f7e213cde7b98f270c77608523.tar.bz2 podman-5e7d6e52dd8ac8f7e213cde7b98f270c77608523.zip |
Merge pull request #5053 from containers/dependabot/go_modules/github.com/containers/storage-1.15.8
build(deps): bump github.com/containers/storage from 1.15.7 to 1.15.8
Diffstat (limited to 'vendor/github.com/klauspost/compress/flate/deflate.go')
-rw-r--r-- | vendor/github.com/klauspost/compress/flate/deflate.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/klauspost/compress/flate/deflate.go b/vendor/github.com/klauspost/compress/flate/deflate.go index 20c94f596..d9948ab40 100644 --- a/vendor/github.com/klauspost/compress/flate/deflate.go +++ b/vendor/github.com/klauspost/compress/flate/deflate.go @@ -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.logReusePenalty = uint(4) + d.w.logNewTablePenalty = 4 d.window = make([]byte, maxStoreBlockSize) d.fill = (*compressor).fillBlock d.step = (*compressor).storeHuff @@ -652,13 +652,13 @@ func (d *compressor) init(w io.Writer, level int) (err error) { level = 5 fallthrough case level >= 1 && level <= 6: - d.w.logReusePenalty = uint(level + 1) + d.w.logNewTablePenalty = 6 d.fast = newFastEnc(level) d.window = make([]byte, maxStoreBlockSize) d.fill = (*compressor).fillBlock d.step = (*compressor).storeFast case 7 <= level && level <= 9: - d.w.logReusePenalty = uint(level) + d.w.logNewTablePenalty = 10 d.state = &advancedState{} d.compressionLevel = levels[level] d.initDeflate() |