The following comment has been added to this issue:
Author: Michael Kopp
Created: Mon, 19 Jul 2004 12:41 AM
Body:
Verified. Thanks.
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/XERCESC-1238?page=comments#action_36754
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESC-1238
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESC-1238
Summary: DomWriter does not pass MemoryManager to XMLFormatter
Type: Bug
Status: Resolved
Priority: Minor
Resolution: FIXED
Project: Xerces-C++
Components:
DOM
Versions:
2.3.0
Assignee:
Reporter: Michael Kopp
Created: Fri, 2 Jul 2004 4:53 AM
Updated: Mon, 19 Jul 2004 12:41 AM
Description:
file: dom/impl/DomWriterImpl.cpp
function: bool DOMWriterImpl::writeNode
The first thing it does is to create a XMLFormatter. It uses its assigned
MemoryManager, but fails to pass it on into the Constructor, this XMLFormatter itself
will use the global MemoryManager instead of the supplied one.
the line:
fFormatter = new (fMemoryManager) XMLFormatter(fEncodingUsed
,fDocumentVersion
,destination
,XMLFormatter::NoEscapes
,XMLFormatter::UnRep_CharRef);
should be changed to:
fFormatter = new (fMemoryManager) XMLFormatter(fEncodingUsed
,fDocumentVersion
,destination
,XMLFormatter::NoEscapes
,XMLFormatter::UnRep_CharRef,
fMemoryManager);
It is a minor thing but in our case a performance bottleneck.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]