Skip to content

Commit

Permalink
zstd: use SpeedBestCompression for level >= 10 (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
atetubou committed Aug 2, 2021
1 parent 94867dd commit 83be565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zstd/encoder_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 83be565

Please sign in to comment.