diff options
author | W. Felix Handte <w@felixhandte.com> | 2018-03-06 16:52:02 (GMT) |
---|---|---|
committer | W. Felix Handte <w@felixhandte.com> | 2018-03-12 18:58:43 (GMT) |
commit | b78cf67c9624a6a826ceaa2a9d65f5feb1dd0cfd (patch) | |
tree | dafd4911334cb6c2659d53e3498b376422c2a539 | |
parent | 00eadadbfc37587e88733942a252c2f106c67ef2 (diff) | |
download | lz4-b78cf67c9624a6a826ceaa2a9d65f5feb1dd0cfd.zip lz4-b78cf67c9624a6a826ceaa2a9d65f5feb1dd0cfd.tar.gz lz4-b78cf67c9624a6a826ceaa2a9d65f5feb1dd0cfd.tar.bz2 |
Move to 4KB Cut-Off
-rw-r--r-- | lib/lz4.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -540,7 +540,7 @@ LZ4_FORCE_INLINE void LZ4_resetTable( (tableType == byU32 && cctx->currentOffset > 1 GB) || tableType == byPtr || - inputSize >= 2 KB)) + inputSize >= 4 KB)) { DEBUGLOG(4, "Resetting table in %p", cctx); MEM_INIT(cctx->hashTable, 0, LZ4_HASHTABLESIZE); @@ -1227,7 +1227,7 @@ int LZ4_compress_fast_continue (LZ4_stream_t* LZ4_stream, const char* source, ch * dictCtx->currentOffset - dictCtx->dictSize. This makes it safe * to use noDictIssue even when the dict isn't a full 64 KB. */ - if (inputSize > 2 KB) { + if (inputSize > 4 KB) { /* For compressing large blobs, it is faster to pay the setup * cost to copy the dictionary's tables into the active context, * so that the compression loop is only looking in one table. |