Performance: XMLSchemaValidator.findSchemaGrammar() called too often.
---------------------------------------------------------------------

                 Key: XERCESJ-1406
                 URL: https://issues.apache.org/jira/browse/XERCESJ-1406
             Project: Xerces2-J
          Issue Type: Improvement
          Components: XML Schema 1.0 Structures
    Affects Versions: 2.9.1
            Reporter: Michael Glavassevich


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 a local elements with no namespace we're likely to end up 
calling the EntityResolver over and over again (even when none is register 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to