>> It turned out it is NOT so, getXXArray() is way faster than getXXXList().  I 
>> analyzed the auto-generated source code and found that they work differently.
>> 
>> A call of getXXXArray() performs an XPATH request to the underlying DOM and 
>> returns the selected beans.
>> A call of getXXXList() does nothing. The returned List is a custom subclass 
>> of AbstractList where overridden List.get(int index) sends an XPATH request. 
>> This means that XPATH is sent on every iteration or on every call of 
>> List.get(int index).
> 
> Did you have any luck finding out why the xmlbeans array method is marked as 
> deprecated? I guess ideally we want to have the schemas generate a version 
> with the array methods, but no deprecation warnings. (We don't want to skip 
> the warnings, as that might mask something in future!)

I just added a comment to the issue that Maxim mentioned.

https://issues.apache.org/jira/browse/XMLBEANS-389 - List accessors generated 
with -javasource=1.5 produce lists that scale poorly with the size of the list

This is similar to the issues that Bryce mentioned before.

Regards,
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to