(xerces-c) branch xerces-3.3 updated: Add two more primes in DOMNodeIDMap hash-table
[email protected] Mon, 21 Oct 2024 12:40:21 +0000
| Newsgroups | gmane.text.xml.xerces-c.devel |
|---|---|
| Message-ID | <172951442098.1072330.17062961721697964276@gitbox2-he-fi.apache.org> |
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 <[email protected]>
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.