Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.9.1
-
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.