[Mesa-dev] [PATCH 5/7] util: Increase start size of hash table and set to 8
Thomas Helland
thomashelland90 at gmail.com
Tue Feb 21 20:53:35 UTC 2017
---
src/util/hash_table.c | 2 +-
src/util/set.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/util/hash_table.c b/src/util/hash_table.c
index a93326ec27..e1255a2484 100644
--- a/src/util/hash_table.c
+++ b/src/util/hash_table.c
@@ -83,7 +83,7 @@ _mesa_hash_table_create(void *mem_ctx,
if (ht == NULL)
return NULL;
- ht->size_iteration = 2;
+ ht->size_iteration = 3;
ht->size = 1 << ht->size_iteration;
ht->max_entries = ht->size * 0.9;
ht->key_hash_function = key_hash_function;
diff --git a/src/util/set.c b/src/util/set.c
index 110f182244..31014984dc 100644
--- a/src/util/set.c
+++ b/src/util/set.c
@@ -83,7 +83,7 @@ _mesa_set_create(void *mem_ctx,
if (ht == NULL)
return NULL;
- ht->size_iteration = 2;
+ ht->size_iteration = 3;
ht->size = 1 << ht->size_iteration;
ht->max_entries = ht->size * 0.9;
ht->key_hash_function = key_hash_function;
--
2.11.1
More information about the mesa-dev
mailing list