[Scummvm-cvs-logs] SF.net SVN: scummvm: [21482] scummvm/trunk/common/hashmap.h
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Tue Mar 28 08:20:04 CEST 2006
Revision: 21482
Author: fingolfin
Date: 2006-03-28 08:19:18 -0800 (Tue, 28 Mar 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=21482&view=rev
Log Message:
-----------
Set correct load factor for hashmap (just wanted to check if anybody is paying attention to those commit messages *cough* ;-)
Modified Paths:
--------------
scummvm/trunk/common/hashmap.h
Modified: scummvm/trunk/common/hashmap.h
===================================================================
--- scummvm/trunk/common/hashmap.h 2006-03-28 15:16:04 UTC (rev 21481)
+++ scummvm/trunk/common/hashmap.h 2006-03-28 16:19:18 UTC (rev 21482)
@@ -312,7 +312,7 @@
_nele++;
// Keep the load factor below 75%.
- if (_nele > _arrsize * 65 / 100) {
+ if (_nele > _arrsize * 75 / 100) {
expand_array(nextTableSize(_arrsize));
ctr = lookup(key);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list