From 2a2a77f0b76dfff88bcda441c20cc35b7ccda2ee Mon Sep 17 00:00:00 2001 From: Takuto Ikuta Date: Wed, 28 Jul 2021 16:57:41 +0900 Subject: [PATCH] zstd: use SpeedBestCompression for level >= 10 --- zstd/encoder_options.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zstd/encoder_options.go b/zstd/encoder_options.go index 16d4ab63c1..7d29e1d689 100644 --- a/zstd/encoder_options.go +++ b/zstd/encoder_options.go @@ -189,7 +189,7 @@ func EncoderLevelFromZstd(level int) EncoderLevel { case level >= 6 && level < 10: return SpeedBetterCompression case level >= 10: - return SpeedBetterCompression + return SpeedBestCompression } return SpeedDefault }