You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Boris Kolpackov (JIRA)" <xe...@xml.apache.org> on 2008/09/15 13:11:46 UTC
[jira] Closed: (XERCESC-1821) Configurable kInitialHeapAllocSize
in xerces
[ https://issues.apache.org/jira/browse/XERCESC-1821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Boris Kolpackov closed XERCESC-1821.
------------------------------------
Resolution: Fixed
Fix Version/s: (was: 3.1.0)
3.0.0
Assignee: Boris Kolpackov (was: David Bertoni)
I didn't like the idea of people waiting (and expecting) 3.1.0 even before 3.0.0 is out so I fixed this in the most non-intrusive way: I overloaded PlatformUtils::Initialize() function which now takes the three parameters corresponding to the three global k* variables. The fix is in SVN.
Scott and George: it would be a really good idea for you to grab a copy from SVN and test this feature to make sure it meets your requirement. I am working on the final release now so you only have a few days for this.
> Configurable kInitialHeapAllocSize in xerces
> ---------------------------------------------
>
> Key: XERCESC-1821
> URL: https://issues.apache.org/jira/browse/XERCESC-1821
> Project: Xerces-C++
> Issue Type: Improvement
> Components: DOM
> Environment: All OS
> Reporter: george
> Assignee: Boris Kolpackov
> Priority: Minor
> Fix For: 3.0.0
>
> Attachments: DOMDocumentImpl.cpp, DOMDocumentImpl.hpp
>
>
> The default DOM initial heap size is 16k in the latest release (earlier release was 64k). this number could be still too big or too small for some system.
> The idea is to make the following parameters configurable in the constructor via a singleton read function.
> static XMLSize_t kInitialHeapAllocSize = 0x4000;
> static XMLSize_t kMaxHeapAllocSize = 0x20000;
> static XMLSize_t kMaxSubAllocationSize = 0x1000; // Any request for more bytes
> Now the question is if you think this is a valuable suggestion? I have a working code and would like to share if you think it worth the effort.
> Cheers
> George
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org