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

Poor performance / OutOfMemoryError for sequences, choices and nested with large minOccurs/maxOccurs

    XMLWordPrintableJSON

Details

    Description

      We now handle large minOccurs/maxOccurs on element/wildcard particles more gracefully by creating a compact representation in the DFA and using counters to check the occurence constraints, however we will still fully expand the content model for minOccurs/maxOccurs on sequences and choices which could still lead to an OutOfMemoryError or very poor performance (i.e. could still take several minutes to build the DFA). Sequences, choices and nested minOccurs/maxOccurs are somewhat tricker to handle. We would need a more general solution than the one implemented for elements and wildcards to improve those.

      With the introduction of XML Schema 1.1 support we would also need to consider how to improve this for the enhanced xs:all model groups.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: