summaryrefslogtreecommitdiff
path: root/hashtable.h
diff options
context:
space:
mode:
Diffstat (limited to 'hashtable.h')
-rw-r--r--hashtable.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hashtable.h b/hashtable.h
index 7cfe9a4..8a4bedb 100644
--- a/hashtable.h
+++ b/hashtable.h
@@ -344,7 +344,7 @@ _simpledata_hashtable_size (size_t count, int shift)
size_t threshold; \
\
/* Guarantee at least 50% free slots */ \
- threshold = hashtable->num_slots / 8; \
+ threshold = hashtable->num_slots / 2; \
if (SIMPLEOPS_UNLIKELY (hashtable->free_slots < threshold)) \
_##prefix##_rehash (hashtable); \
\