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

ComplexType array return performance issue

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.6.0
    • Fix Version/s: 1.6.2, 1.7.0
    • Component/s: adb
    • Environment:
      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

              • Assignee:
                veithen Andreas Veithen
                Reporter:
                vilnis.termanis Vilnis Termanis
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: