From 84957b77256c293c789b087eddb04bb6c9355813 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sat, 7 Jan 2012 17:39:25 +0100 Subject: [PATCH] Pattern spatial_hash_bits 24 -> 26: Enlarges hash table size from 64mib to 256mib That's quite a lot, but otherwise there is too many collisions. We need to get better hashing, yeah. --- patternsp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patternsp.h b/patternsp.h index 5e5369e..4ebf427 100644 --- a/patternsp.h +++ b/patternsp.h @@ -98,7 +98,7 @@ struct spatial_dict { /* Hashed access; all isomorphous configurations * are also hashed */ -#define spatial_hash_bits 24 // ~64mib array +#define spatial_hash_bits 26 // ~256mib array #define spatial_hash_mask ((1 << spatial_hash_bits) - 1) /* Maps to spatials[] indices. The hash function * used is zobrist hashing with fixed values. */ -- 2.11.4.GIT