diff options
author | Max Horn | 2006-03-28 16:19:18 +0000 |
---|---|---|
committer | Max Horn | 2006-03-28 16:19:18 +0000 |
commit | f38d89f3273a5832ec00f35955448a974292982e (patch) | |
tree | 43d1ca41f3c626d00237b85a78db96968b151a01 /common/hashmap.h | |
parent | d3e08aedbb838a36d4ecfc11f87314cf2f1db04f (diff) | |
download | scummvm-rg350-f38d89f3273a5832ec00f35955448a974292982e.tar.gz scummvm-rg350-f38d89f3273a5832ec00f35955448a974292982e.tar.bz2 scummvm-rg350-f38d89f3273a5832ec00f35955448a974292982e.zip |
Set correct load factor for hashmap (just wanted to check if anybody is paying attention to those commit messages *cough* ;-)
svn-id: r21482
Diffstat (limited to 'common/hashmap.h')
-rw-r--r-- | common/hashmap.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<Key, Val>::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); } |