aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-10-22 09:19:40 +0200
committerBad Diode <bd@badd10de.dev>2021-10-22 09:19:40 +0200
commit5bd694fc7071bfb76b9f65c89d253b2b4e18cf63 (patch)
treeed66e4744b8c41dfa668955ae85254c79146889a
parent2625019add3d16d3ee5d210bcebdd999d3b0cc32 (diff)
downloadbdl-5bd694fc7071bfb76b9f65c89d253b2b4e18cf63.tar.gz
bdl-5bd694fc7071bfb76b9f65c89d253b2b4e18cf63.zip
Change min capacity on hashtable to 4
-rw-r--r--src/bootstrap/hashtable.h6
1 files 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 @@
5#include "objects.h" 5#include "objects.h"
6 6
7// Minimum table capacity. 7// Minimum table capacity.
8#define HT_MIN_CAP 2 8#define HT_MIN_CAP 4
9#define HT_MIN_SHIFT 1 9#define HT_MIN_SHIFT 2
10 10
11// Adjust the load factor threshold at which the table will grow on insertion. 11// Adjust the load factor threshold at which the table will grow on insertion.
12#define HT_LOAD_THRESHOLD 0.75 12#define HT_LOAD_THRESHOLD 0.8
13 13
14typedef struct HashTablePair { 14typedef struct HashTablePair {
15 Object *key; 15 Object *key;