summaryrefslogtreecommitdiff
path: root/soltools/ldump/hashtbl.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2005-01-14 10:36:19 +0000
committerKurt Zenker <kz@openoffice.org>2005-01-14 10:36:19 +0000
commit9444e58d3e22ee2a0383aebb08864ac86471c593 (patch)
tree999349be0929b0291369b23e4562cb53ecbf009d /soltools/ldump/hashtbl.cxx
parenta1fe817d06d19a484494019592456e227789db63 (diff)
INTEGRATION: CWS ause015 (1.1.128); FILE MERGED
2005/01/11 17:36:04 hjs 1.1.128.1: #i40370# tremendous spedup fix from cd
Diffstat (limited to 'soltools/ldump/hashtbl.cxx')
-rw-r--r--soltools/ldump/hashtbl.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/soltools/ldump/hashtbl.cxx b/soltools/ldump/hashtbl.cxx
index 383c2be56b91..afa5a72e9137 100644
--- a/soltools/ldump/hashtbl.cxx
+++ b/soltools/ldump/hashtbl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: hashtbl.cxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: nf $ $Date: 2001-04-11 09:52:26 $
+ * last change: $Author: kz $ $Date: 2005-01-14 11:36:19 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -109,7 +109,7 @@ public:
// class HashTable
//
-/*static*/ double HashTable::m_defMaxLoadFactor = 0.8;
+/*static*/ double HashTable::m_defMaxLoadFactor = 0.5;
/*static*/ double HashTable::m_defDefGrowFactor = 2.0;
HashTable::HashTable(unsigned long lSize, bool bOwner, double dMaxLoadFactor, double dGrowFactor)
@@ -118,7 +118,7 @@ HashTable::HashTable(unsigned long lSize, bool bOwner, double dMaxLoadFactor, do
m_bOwner = bOwner;
m_lElem = 0;
m_dMaxLoadFactor = MAX(0.5,MIN(1.0,dMaxLoadFactor)); // 0.5 ... 1.0
- m_dGrowFactor = MAX(1.3,(5.0,dGrowFactor)); // 1.3 ... 5.0
+ m_dGrowFactor = MAX(2.0,MIN(5.0,dGrowFactor)); // 1.3 ... 5.0
m_pData = new HashItem [lSize];
}