poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Burch <nick.bu...@alfresco.com>
Subject Re: performance issues with ooxml-schemas-1.1.jar
Date Fri, 22 Oct 2010 16:52:19 GMT
On Tue, 12 Oct 2010, Yegor Kozlov wrote:
> 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!)

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message