summaryrefslogtreecommitdiff
path: root/viengoos/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'viengoos/object.c')
-rw-r--r--viengoos/object.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/viengoos/object.c b/viengoos/object.c
index a36b233..6bf0eba 100644
--- a/viengoos/object.c
+++ b/viengoos/object.c
@@ -71,7 +71,10 @@ object_init (void)
/* Allocate object hash. */
int count = (last_frame - first_frame) / PAGESIZE + 1;
- size_t size = hurd_ihash_buffer_size (count, true, 0);
+ /* XXX: Use a load factory of just 30% until we get a better hash
+ implementation. The default of 80% can result in very long
+ chains. */
+ size_t size = hurd_ihash_buffer_size (count, true, 30);
/* Round up to a multiple of the page size. */
size = (size + PAGESIZE - 1) & ~(PAGESIZE - 1);