From bdd7af6f71c235cea53912d0eec3b94555e9ffde Mon Sep 17 00:00:00 2001 From: "W. Felix Handte" Date: Wed, 4 Apr 2018 15:59:00 -0400 Subject: [PATCH] Don't Bother Clearing Chain Table for Working Contexts --- lib/lz4hc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.7.4