From 83be565274a3e98bdbce171950cb6e857da2876d Mon Sep 17 00:00:00 2001 From: Takuto Ikuta Date: Mon, 2 Aug 2021 17:02:43 +0900 Subject: [PATCH] zstd: use SpeedBestCompression for level >= 10 (#410) --- 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 }