Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5076061

new XPath API is much slower than the "CachedXPathAPI" from Xalan

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 5.0
    • xml
    • Fix Understood
    • x86
    • windows_xp

      ###@###.### 2004-07-20


      J2SE Version (please include all output from java -version flag):
        java version "1.5.0-beta3"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta3-b56)
        Java HotSpot(TM) Client VM (build 1.5.0-beta3-b56, mixed mode)

      Does this problem occur on J2SE 1.3.x or 1.4.x? Yes / No (pick one)
        Not applicatable.


      Operating System Configuration Information (be specific):
        Windows XP Professional SP1.


      Hardware Configuration Information (be specific):
        Dell Inspiron 8500, Pentium 4M 2.2 GHz, 1 GB RAM

      Bug Description:
        The new XPath API is much slower than the "CachedXPathAPI" from Xalan.
        As far as I can see there is no way to speed up the new XPath API by
        caching.

        Results for a simple query:

         new xpath api: 630 queries/sec
         old xpath api: 818 queries/sec
         old xpath api (with caching): 8605 queries/sec


      Steps to Reproduce (be specific):
        Run the attached program; XPathTest.java
      ###@###.### 11/2/04 21:49 GMT

            joehw Joe Wang
            tyao Ting-Yun Ingrid Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: