From 5bd694fc7071bfb76b9f65c89d253b2b4e18cf63 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Fri, 22 Oct 2021 09:19:40 +0200 Subject: Change min capacity on hashtable to 4 --- src/bootstrap/hashtable.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bootstrap/hashtable.h b/src/bootstrap/hashtable.h index ea24d04..8f210e3 100644 --- a/src/bootstrap/hashtable.h +++ b/src/bootstrap/hashtable.h @@ -5,11 +5,11 @@ #include "objects.h" // Minimum table capacity. -#define HT_MIN_CAP 2 -#define HT_MIN_SHIFT 1 +#define HT_MIN_CAP 4 +#define HT_MIN_SHIFT 2 // Adjust the load factor threshold at which the table will grow on insertion. -#define HT_LOAD_THRESHOLD 0.75 +#define HT_LOAD_THRESHOLD 0.8 typedef struct HashTablePair { Object *key; -- cgit v1.2.1