From 87e8da90b04a136a5ae094921bc7896c71d64d47 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sat, 13 Dec 2014 01:37:24 +0100 Subject: [PATCH] BB#110 Increase number of hash buckets from 32 to 256. This should make hash processing generally faster. There is a treadeoff between memory footprint and speed of processing. 10 KB instead of 1.2 KB of hash table per process should not be a huge problem even on very limited current systems. Who really needs to stick to 32 buckets could recompile. We could also think about making this configurable at some point. Signed-off-by: Michael Adam (cherry picked from commit 800c3a250c410150a4560ddaf6a1853c75a516f8) --- src/reqs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reqs.c b/src/reqs.c index c854b9d..483bd33 100644 --- a/src/reqs.c +++ b/src/reqs.c @@ -819,7 +819,7 @@ done: /* * Number of buckets to use internally in the hashmap. */ -#define HEADER_BUCKETS 32 +#define HEADER_BUCKETS 256 /* * Here we loop through all the headers the client is sending. If we