Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-619

Performance enhancement for interface extension generation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Version 5.1.0
    • Version 5.1.1
    • Binding
    • None

    Description

      I have found another performance enhancement: at these two places new instances of org.apache.xmlbeans.impl.config.Parser are created repeatedly for the same combination of Java source files and classpath.

      https://github.com/apache/xmlbeans/blob/7dabbf1227023b3938f512632d5a750201ff2a3c/src/main/java/org/apache/xmlbeans/impl/config/BindingConfigImpl.java#L204

      https://github.com/apache/xmlbeans/blob/7dabbf1227023b3938f512632d5a750201ff2a3c/src/main/java/org/apache/xmlbeans/impl/config/BindingConfigImpl.java#L216

      When there are lots of interface extensions, the performance hit is quite significant.

      See pull request https://github.com/apache/xmlbeans/pull/7

      Attachments

        Activity

          People

            Unassigned Unassigned
            pakeller Peter Keller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m