-
1. Re: Performance bottleneck when marshalling array types.
heiko.braun Jun 14, 2006 12:38 PM (in response to heiko.braun)Alex wrote:
The Iterator is now used to iterate through the LinkedList instance instead of index-based access. -
2. Re: Performance bottleneck when marshalling array types.
heiko.braun Jun 14, 2006 12:38 PM (in response to heiko.braun)Heiko wrote:
What's the reason to stick with the linked list? Compared to the ArrayList replacement, the Iterator approach doesn't really have an impact on performance. -
3. Re: Performance bottleneck when marshalling array types.
heiko.braun Jun 14, 2006 12:39 PM (in response to heiko.braun)Alex wrote:
ran my benchmarks for LinkedList vs ArrayList. Iteration using Iterator is not very different. But the population is. E.g. up to 5000 elements, ArrayList appears to be faster. But for 10'000 elements, LinkedList is significantly faster. I agree, ArrayList is preferable in general. Perhaps, it makes sense to switch -
4. Re: Performance bottleneck when marshalling array types.
heiko.braun Jun 14, 2006 1:02 PM (in response to heiko.braun)Well it depends what the majority of usecases is closer to. When i look at my test data, the 10.000 item xml file is >1mb and thus it should better be transfered as a binary attachment in in the first place.
As far as i can tell from the forums and support cases arrays that size are really edge cases.
From my point of view we should switch to the ArrayList. -
5. Re: Performance bottleneck when marshalling array types.
aloubyansky Jun 15, 2006 5:40 AM (in response to heiko.braun)Ok, switched to ArrayList.
-
6. Re: Performance bottleneck when marshalling array types.
cbax007 Jun 19, 2006 6:47 PM (in response to heiko.braun)Where can I get this fix? What release of JBoss will it be incorporated into? I looked at the JIRA issue and i couldn't see what files you changed via the change log. I would like to get and test this fix as I am experiencing the same issue.
-
7. Re: Performance bottleneck when marshalling array types.
aloubyansky Jun 20, 2006 6:52 AM (in response to heiko.braun)I have updated the http://repository.jboss.com/jboss/jbossxb/snapshot/lib/jboss-xml-binding.jar to include the fix. But it probably will take some time to pick it up. Otherwise, it's in CVS HEAD in common sub-module of jboss-head.
It will be in the next JBoss release, i.e. 4.0.5.RC....
As to the version control tab in Jira, I have to clarify it myself. -
8. Re: Performance bottleneck when marshalling array types.
aloubyansky Jun 20, 2006 6:53 AM (in response to heiko.braun)FYI
Modified: src/main/org/jboss/xb/binding/sunday/unmarshalling
SundayContentHandler.java XsdBinder.java
Log:
switched from LinkedList to ArrayList, related to JBXB-65
Modified: src/main/org/jboss/xb/binding AbstractMarshaller.java
Content.java DtdMarshaller.java
NamespaceRegistry.java ObjectModelBuilder.java
Log:
switched from LinkedList to ArrayList, related to JBXB-65