You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org> on 2009/11/24 04:24:40 UTC

[jira] Assigned: (XERCESJ-1406) Performance: XMLSchemaValidator.findSchemaGrammar() called too often.

     [ https://issues.apache.org/jira/browse/XERCESJ-1406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich reassigned XERCESJ-1406:
---------------------------------------------

    Assignee: Michael Glavassevich

> 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
>            Assignee: 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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org