diff options
author | Yann Collet <Cyan4973@users.noreply.github.com> | 2018-04-27 18:46:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-27 18:46:29 (GMT) |
commit | 47d70e755e67d187da43ffe14d5ce47bf1ff04de (patch) | |
tree | fd3e0f88e274e98ce7e61a5db14c25bb880e831d /lib/lz4frame.c | |
parent | 938e4849ae3bb33665aeee2647aa3e2077af0b5a (diff) | |
parent | d294dd7fc684b1f46130358ff5c218e835082b16 (diff) | |
download | lz4-47d70e755e67d187da43ffe14d5ce47bf1ff04de.zip lz4-47d70e755e67d187da43ffe14d5ce47bf1ff04de.tar.gz lz4-47d70e755e67d187da43ffe14d5ce47bf1ff04de.tar.bz2 |
Merge pull request #519 from lz4/fdParser
Faster decoding speed
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 4d6d39c..93ce696 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((LZ4_streamHC_t*)cctxPtr->lz4CtxPtr, (int)preferencesPtr->favorDecSpeed); + } /* Magic Number */ LZ4F_writeLE32(dstPtr, LZ4F_MAGICNUMBER); |