[ 
https://issues.apache.org/jira/browse/XERCESJ-1382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12730264#action_12730264
 ] 

Bene commented on XERCESJ-1382:
-------------------------------

Thank you for taking a look!

How exactly do you set the "cdata-sections" parameter to true? Can it be done 
using the JAXP API?
As far as I know, we use the JAXP default setting for the "cdata-sections" 
parameter.

I agree that appendData() is called too often: The JRat analysis states that it 
is called 6393 times for the 3 CDATA sections.
Thank you for the explanation of this behaviour and for the workaround.


> Performance problem in org.apache.xerces.dom.CharacterDataImpl appendData
> -------------------------------------------------------------------------
>
>                 Key: XERCESJ-1382
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1382
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: DOM (Level 3 Core)
>    Affects Versions: 2.6.0, 2.9.1
>         Environment: Windows XP SP2; JRE 1.6.0_13; Xerces2 Java Parser 2.9.1 
> Release (Xerces-J-bin.2.9.1.zip)
>            Reporter: Bene
>            Priority: Critical
>         Attachments: xerces_performance_problem.png, 
> xerces_performance_problem.xml
>
>
> It takes too long to parse a large XML Document, if the document contains 
> CDATA sections, which contain embedded XML.
> The problem initially occured with Xerces 2.6.0, where it took about 30 
> seconds !!! to parse an XML document with about 250 KB.
> So we upgraded to Xerces 2.9.1, which improves parse time to about 5 seconds. 
> Unfortunately this is still much too slow!
> I tried to find similar bug reports and there are many:
> XERCESJ-102
> XERCESJ-1268
> XALANJ-2398
> Unfortunately the issue is still not fixed, so I decided to create this 
> report.

-- 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to