You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2002/10/03 00:20:46 UTC

DO NOT REPLY [Bug 13225] New: - XPath's selectNodeList performance degrades when using Xerces as DOM.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13225>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13225

XPath's selectNodeList performance degrades when using Xerces as DOM.

           Summary: XPath's selectNodeList performance degrades when using
                    Xerces as DOM.
           Product: XalanC
           Version: 1.4.x
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Major
          Priority: Other
         Component: XalanC
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: ccoble@sonicdesktop.com


When using the Xalan XPATH calls on top of the Xerces DOM, selectNodeList 
calls can take many minutes to return, even when performing XPATH searches on  
small XML files (ie, 100kb).  The history of this bug discussion can be found 
here:

http://marc.theaimsgroup.com/?t=103350455300006&r=1&w=2

A zip file containing a descriptive text document, test code, compiled test 
application, and sample XML files can be found in the following post:

http://marc.theaimsgroup.com/?l=xalan-c-users&m=103359610923231&w=2

Here is an exerpt from the text document contained in the zip file:

----------------------------------------------------------------------
-------------------- Test using fast_result.xml file -----------------
----------------------------------------------------------------------
C:\test>xalantest "//Keyword" .\fast_result.xml
Xalan Results: 90 milliseconds to parse the file.
               10 milliseconds to perform the search.
               6546 items were returned.

Xerces Results: 131 milliseconds to parse the file.
                80 milliseconds to perform the search.
                6546 items were returned.

Benchmarking complete:  Xalan DOM beat Xerces DOM by 70 milliseconds.


----------------------------------------------------------------------
-------------------- Test using slow_result.xml file -----------------
----------------------------------------------------------------------

C:\test>xalantest "//Keyword" .\slow_result.xml
Xalan Results: 50 milliseconds to parse the file.
               10 milliseconds to perform the search.
               1922 items were returned.

Xerces Results: 50 milliseconds to parse the file.
                820590 milliseconds to perform the search.  (13
minutes!!!!!!)
                1922 items were returned.

Benchmarking complete:  Xalan DOM beat Xerces DOM by 820580
milliseconds.

----------------------------------------------------------------------