summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorW. Felix Handte <w@felixhandte.com>2018-04-04 19:59:00 (GMT)
committerW. Felix Handte <w@felixhandte.com>2018-04-20 00:54:35 (GMT)
commitbdd7af6f71c235cea53912d0eec3b94555e9ffde (patch)
treeef81b23e70217efc7a4cdfd3aba7cf29db29a8f9
parent895e76cc20f366ea9f2999abc9ff3e0dd11b4222 (diff)
downloadlz4-bdd7af6f71c235cea53912d0eec3b94555e9ffde.zip
lz4-bdd7af6f71c235cea53912d0eec3b94555e9ffde.tar.gz
lz4-bdd7af6f71c235cea53912d0eec3b94555e9ffde.tar.bz2
Don't Bother Clearing Chain Table for Working Contexts
-rw-r--r--lib/lz4hc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lz4hc.c b/lib/lz4hc.c
index c56d976..673b4b3 100644
--- a/lib/lz4hc.c
+++ b/lib/lz4hc.c
@@ -96,7 +96,7 @@ static void LZ4HC_init (LZ4HC_CCtx_internal* hc4, const BYTE* start)
U32 startingOffset = hc4->end - hc4->base + 64 KB;
DEBUGLOG(4, "LZ4HC_init(%p, %p)", hc4, start);
if (startingOffset > 1 GB || startingOffset > (uptrval)start) {
- LZ4HC_clearTables(hc4);
+ MEM_INIT((void*)hc4->hashTable, 0, sizeof(hc4->hashTable));
startingOffset = 64 KB;
}
hc4->nextToUpdate = startingOffset;