projects
/
platform
/
upstream
/
lz4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
895e76c
)
Don't Bother Clearing Chain Table for Working Contexts
author
W. Felix Handte
<w@felixhandte.com>
Wed, 4 Apr 2018 19:59:00 +0000
(15:59 -0400)
committer
W. Felix Handte
<w@felixhandte.com>
Fri, 20 Apr 2018 00:54:35 +0000
(20:54 -0400)
lib/lz4hc.c
patch
|
blob
|
history
diff --git
a/lib/lz4hc.c
b/lib/lz4hc.c
index
c56d976
..
673b4b3
100644
(file)
--- 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;