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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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. ----------------------------------------------------------------------
