From f38d89f3273a5832ec00f35955448a974292982e Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 28 Mar 2006 16:19:18 +0000 Subject: Set correct load factor for hashmap (just wanted to check if anybody is paying attention to those commit messages *cough* ;-) svn-id: r21482 --- common/hashmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/hashmap.h') diff --git a/common/hashmap.h b/common/hashmap.h index 396718fdc9..a38324bf80 100644 --- a/common/hashmap.h +++ b/common/hashmap.h @@ -312,7 +312,7 @@ Val &HashMap::operator [](const Key &key) { _nele++; // Keep the load factor below 75%. - if (_nele > _arrsize * 65 / 100) { + if (_nele > _arrsize * 75 / 100) { expand_array(nextTableSize(_arrsize)); ctr = lookup(key); } -- cgit v1.2.3