Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-4524

Caching BeanInfo in adb module's BeanUtil improves performance

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5
    • 1.6.2, 1.7.0
    • adb
    • None

    Description

      I've detected that org.apache.axis2.databinding.utils.BeanUtil class can be improved for performance. It seems that invoking Introspector.getBeanInfo(Class, Class) takes a lot of time. By caching java.beans.BeanInfo in this class it doubles up (at least) the performance, especially when returning a big dataset. I changed this myself and saw a great deal of performance improvement.

      Attachments

        1. axis2.diff
          36 kB
          Kathiravelu Pradeeban
        2. BeanUtil.diff
          2 kB
          Valgeir Halldórsson

        Issue Links

          Activity

            People

              veithen Andreas Veithen
              valgeir Valgeir Halldórsson
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: