This is an automated email from the ASF dual-hosted git repository. borisk pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/xerces-c.git
The following commit(s) were added to refs/heads/master by this push: new 290d9a9e6 Add two more primes in DOMNodeIDMap hash-table 290d9a9e6 is described below commit 290d9a9e65c89080bad2a3c5452c8846a7d3f151 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 9d7cbb61e..6ad54596a 100644 --- a/src/xercesc/dom/impl/DOMNodeIDMap.cpp +++ b/src/xercesc/dom/impl/DOMNodeIDMap.cpp @@ -30,7 +30,7 @@ namespace XERCES_CPP_NAMESPACE { -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