aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;