summaryrefslogtreecommitdiffstats
path: root/lib/lz4hc.h
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2017-11-03 08:18:12 (GMT)
committerYann Collet <cyan@fb.com>2017-11-03 08:18:12 (GMT)
commit81667a1e966469de0f307bfda141ccb6e89a3115 (patch)
treea23759ffd11979f1b11482267024ff74f67176db /lib/lz4hc.h
parent82c1aed41927d0d3400ab91f975c2e163ecdcc1d (diff)
downloadlz4-81667a1e966469de0f307bfda141ccb6e89a3115.zip
lz4-81667a1e966469de0f307bfda141ccb6e89a3115.tar.gz
lz4-81667a1e966469de0f307bfda141ccb6e89a3115.tar.bz2
removed code and reference to binary tree match finder
reduced size of LZ4HC state
Diffstat (limited to 'lib/lz4hc.h')
-rw-r--r--lib/lz4hc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lz4hc.h b/lib/lz4hc.h
index a9cefbb..191ab0c 100644
--- a/lib/lz4hc.h
+++ b/lib/lz4hc.h
@@ -129,7 +129,7 @@ LZ4LIB_API int LZ4_saveDictHC (LZ4_streamHC_t* streamHCPtr, char* safeBuffer, in
* They are exposed to allow static allocation of `LZ4_streamHC_t`.
* Using these definitions makes the code vulnerable to potential API break when upgrading LZ4
**************************************/
-#define LZ4HC_DICTIONARY_LOGSIZE 17 /* due to btree, hc would only need 16 */
+#define LZ4HC_DICTIONARY_LOGSIZE 16
#define LZ4HC_MAXD (1<<LZ4HC_DICTIONARY_LOGSIZE)
#define LZ4HC_MAXD_MASK (LZ4HC_MAXD - 1)
@@ -175,7 +175,7 @@ typedef struct
#endif
-#define LZ4_STREAMHCSIZE (4*LZ4HC_HASHTABLESIZE + 2*LZ4HC_MAXD + 56) /* 393268 */
+#define LZ4_STREAMHCSIZE (4*LZ4HC_HASHTABLESIZE + 2*LZ4HC_MAXD + 56) /* 262200 */
#define LZ4_STREAMHCSIZE_SIZET (LZ4_STREAMHCSIZE / sizeof(size_t))
union LZ4_streamHC_u {
size_t table[LZ4_STREAMHCSIZE_SIZET];