Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1406

Performance: XMLSchemaValidator.findSchemaGrammar() called too often.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.9.1
    • 2.10.0
    • None

    Description

      On every startElement() call we attempt to look-up a SchemaGrammar which is usually never read. In the best case it's already in the XMLGrammarPool, but when we're processing local elements with no namespace we're likely to end up calling the EntityResolver over and over again (even when none is registered we always go through XMLEntityManager.resolveEntity()), attempting to load an empty XMLInputSource with the schema loader and after all that returning null back from the method. That's a lot of wasted time.

      Attachments

        Activity

          People

            mrglavas@ca.ibm.com Michael Glavassevich
            mrglavas@ca.ibm.com Michael Glavassevich
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: