diff options
author | Yann Collet <cyan@fb.com> | 2018-04-26 22:18:44 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2018-04-26 22:18:44 (GMT) |
commit | 3792d00168edd060c58ceaecffb97d43dab27094 (patch) | |
tree | ce0e244790d0cea9cea34cc0f7ebe7666639a7e1 /lib/lz4frame.c | |
parent | 1148173c5dd1ad9b672c63fd0da110e3c2d66274 (diff) | |
download | lz4-3792d00168edd060c58ceaecffb97d43dab27094.zip lz4-3792d00168edd060c58ceaecffb97d43dab27094.tar.gz lz4-3792d00168edd060c58ceaecffb97d43dab27094.tar.bz2 |
favorDecSpeed feature can be triggered from lz4frame
and lz4hc.
Diffstat (limited to 'lib/lz4frame.c')
-rw-r--r-- | lib/lz4frame.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/lz4frame.c b/lib/lz4frame.c index b616463..06a0f7b 100644 --- a/lib/lz4frame.c +++ b/lib/lz4frame.c @@ -612,6 +612,9 @@ size_t LZ4F_compressBegin_usingCDict(LZ4F_cctx* cctxPtr, /* frame init only for blockLinked : blockIndependent will be init at each block */ LZ4F_applyCDict(cctxPtr->lz4CtxPtr, cdict, cctxPtr->prefs.compressionLevel); } + if (preferencesPtr->compressionLevel >= LZ4HC_CLEVEL_MIN) { + LZ4_favorDecompressionSpeed(cctxPtr->lz4CtxPtr, preferencesPtr->favorDecSpeed); + } /* Magic Number */ LZ4F_writeLE32(dstPtr, LZ4F_MAGICNUMBER); |