diff options
author | W. Felix Handte <w@felixhandte.com> | 2018-04-04 19:59:00 (GMT) |
---|---|---|
committer | W. Felix Handte <w@felixhandte.com> | 2018-04-20 00:54:35 (GMT) |
commit | bdd7af6f71c235cea53912d0eec3b94555e9ffde (patch) | |
tree | ef81b23e70217efc7a4cdfd3aba7cf29db29a8f9 /lib | |
parent | 895e76cc20f366ea9f2999abc9ff3e0dd11b4222 (diff) | |
download | lz4-bdd7af6f71c235cea53912d0eec3b94555e9ffde.zip lz4-bdd7af6f71c235cea53912d0eec3b94555e9ffde.tar.gz lz4-bdd7af6f71c235cea53912d0eec3b94555e9ffde.tar.bz2 |
Don't Bother Clearing Chain Table for Working Contexts
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lz4hc.c | 2 |
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; |