Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4326

Remove the XPathFactory.newInstance from XPathUtils' constructor to improve the performance a bit

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.7, 2.5.3, 2.6
    • 2.3.11, 2.4.8, 2.5.4, 2.6.1
    • None
    • None
    • Unknown

    Description

      XPathFactoryFinder looks up the factory for each XPathUtil construction, this is duplicate and can be improved for performance.
      at javax.xml.xpath.XPathFactoryFinder._newFactory(XPathFactoryFinder.java:222)
      at javax.xml.xpath.XPathFactoryFinder.newFactory(XPathFactoryFinder.java:143)
      at javax.xml.xpath.XPathFactory.newInstance(XPathFactory.java:185)
      at javax.xml.xpath.XPathFactory.newInstance(XPathFactory.java:99)
      at org.apache.cxf.helpers.XPathUtils.<init>(XPathUtils.java:37)
      at org.apache.cxf.helpers.XPathUtils.<init>(XPathUtils.java:41)

      Attachments

        Activity

          People

            ema Jim Ma
            ema Jim Ma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: