From 439efebf390aa7b7e2fdf0128b9463ed0ba8ab4c Mon Sep 17 00:00:00 2001 From: Robert Swiecki Date: Thu, 1 Jan 2026 10:17:50 +0100 Subject: [PATCH] dict: larger dict --- dict.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dict.c b/dict.c index 792e558a..28823d6d 100644 --- a/dict.c +++ b/dict.c @@ -52,9 +52,9 @@ static inline uint32_t dict_hash(const uint8_t* data, size_t len) { /* * Hash table for fast duplicate lookups. * Uses open addressing with linear probing. - * Size is 16K to keep load factor low for 8K max entries. + * Size is 64K to keep load factor low for large dictionaries. */ -#define DICT_HASH_SIZE 16384 +#define DICT_HASH_SIZE 65536 #define DICT_HASH_MASK (DICT_HASH_SIZE - 1) /* Hash table entries: index into dictionary array, 0 means empty, index+1 stored */