This is an automated email from the ASF dual-hosted git repository.

borisk pushed a commit to branch xerces-3.3
in repository https://gitbox.apache.org/repos/asf/xerces-c.git


The following commit(s) were added to refs/heads/xerces-3.3 by this push:
     new d7d111bce Add two more primes in DOMNodeIDMap hash-table
d7d111bce is described below

commit d7d111bce47e242f6ca97bb2ec5d320b5fa451ff
Author: Boris Kolpackov <bo...@codesynthesis.com>
AuthorDate: Mon Oct 21 14:37:36 2024 +0200

    Add two more primes in DOMNodeIDMap hash-table
    
    Modern machines have quite a bit of memory which makes DOM documents
    with this large number of nodes plausible.
---
 src/xercesc/dom/impl/DOMNodeIDMap.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xercesc/dom/impl/DOMNodeIDMap.cpp 
b/src/xercesc/dom/impl/DOMNodeIDMap.cpp
index 3e900292e..8c7f8cb1c 100644
--- a/src/xercesc/dom/impl/DOMNodeIDMap.cpp
+++ b/src/xercesc/dom/impl/DOMNodeIDMap.cpp
@@ -30,7 +30,7 @@
 XERCES_CPP_NAMESPACE_BEGIN
 
 
-static const XMLSize_t gPrimes[] = {997, 9973, 99991, 999983, 0 };  // To do - 
add a few more.
+static const XMLSize_t gPrimes[] = {997, 9973, 99991, 999983, 9999991, 
99999989, 0};  // To do - add a few more.
 
 static const float gMaxFill = 0.8f;   // The maximum fraction of the total
                                     // table entries to consume before 
exanding.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org

Reply via email to