aboutsummaryrefslogtreecommitdiff
path: root/lib/lz4.c
diff options
context:
space:
mode:
authorW. Felix Handte <w@felixhandte.com>2018-03-06 11:52:02 -0500
committerW. Felix Handte <w@felixhandte.com>2018-03-12 14:58:43 -0400
commitb78cf67c9624a6a826ceaa2a9d65f5feb1dd0cfd (patch)
treedafd4911334cb6c2659d53e3498b376422c2a539 /lib/lz4.c
parent00eadadbfc37587e88733942a252c2f106c67ef2 (diff)
downloadlz4-b78cf67c9624a6a826ceaa2a9d65f5feb1dd0cfd.tar.gz
Move to 4KB Cut-Off
Diffstat (limited to 'lib/lz4.c')
-rw-r--r--lib/lz4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lz4.c b/lib/lz4.c
index 48109104..d147681e 100644
--- a/lib/lz4.c
+++ b/lib/lz4.c
@@ -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.