diff options
author | Yann Collet <cyan@fb.com> | 2017-12-20 13:14:01 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2017-12-20 13:14:01 (GMT) |
commit | 55da545e7ac7b1335beac65aba2a1a30cef118ba (patch) | |
tree | 4fed5c3e4e3d984a3ae583def500abfc93e14cac /lib/lz4hc.h | |
parent | ec93bb127f96df0e2c2badabdb7daa1b2ce885c9 (diff) | |
download | lz4-55da545e7ac7b1335beac65aba2a1a30cef118ba.zip lz4-55da545e7ac7b1335beac65aba2a1a30cef118ba.tar.gz lz4-55da545e7ac7b1335beac65aba2a1a30cef118ba.tar.bz2 |
new level 10
lz4opt is only competitive vs lz4hc level 10.
Below that level, it doesn't match the speed / compression effectiveness of regular hc parser.
This patch propose to extend lz4opt to levels 10-12.
The new level 10 tend to compress a bit better and a bit faster than previous one (mileage vary depending on file)
The only downside is that `limitedDestSize` mode is now limited to max level 9 (vs 10),
since it's only compatible with regular HC parser.
(Note : I suspect it's possible to convert lz4opt to support it too, but haven't spent time into it).
Diffstat (limited to 'lib/lz4hc.h')
-rw-r--r-- | lib/lz4hc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lz4hc.h b/lib/lz4hc.h index d791062..d41bf42 100644 --- a/lib/lz4hc.h +++ b/lib/lz4hc.h @@ -46,7 +46,7 @@ extern "C" { /* --- Useful constants --- */ #define LZ4HC_CLEVEL_MIN 3 #define LZ4HC_CLEVEL_DEFAULT 9 -#define LZ4HC_CLEVEL_OPT_MIN 11 +#define LZ4HC_CLEVEL_OPT_MIN 10 #define LZ4HC_CLEVEL_MAX 12 |