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

ComplexType array return performance issue

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.6.0
    • 1.6.2, 1.7.0
    • adb
    • Ubuntu 10.04 64-bit, Tomcat 6.0.28, Axis 1.6.0

    Description

      Service function returns which contain (long) arrays of custom objects degrade performance.

      Example (POJO):
      SomeCustomType[] myFunc() is a lot slower than String[] myFunc()

      Reason:
      BeanUtil.getBeanInfo() (modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java) is called for each element in the output array, even though they are all the same. (According to http://download.oracle.com/javase/6/docs/api/java/beans/BeanInfo.html the result should be cached but this does not seem to be happening.)

      Attachments

        1. BeanUtil.java
          46 kB
          Vilnis Termanis

        Issue Links

          Activity

            People

              veithen Andreas Veithen
              vilnis.termanis Vilnis Termanis
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: