8 Replies Latest reply on Jun 20, 2006 6:53 AM by aloubyansky

    Performance bottleneck when marshalling array types.

    heiko.braun

      Radim Tlusty wrote:


      " I have made deeper analyse of this issue using JBoss profiler and I have found the main bottleneck.

      Most of time was spent in class org.jboss.xb.binding.Content in method handleContent(ContentHandler). There is used LinkedList (attribute content), but inside of method handleContent() is called 'content.get(i)' . This list is big for large documents and the access of linked list elements by index is of course slow.

      For my test purpose I have only interchanged the LinkedList by ArrayList and my test case which took before 97s is now ready in 7s. Only for comparison: in JBoss 4.0.4.RC1 with JBoss-WS4EE it lasts 2s and in Sun Application server 9 it's 0,6s. So there is still place for improvement.