ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Scanning Resource Collections Several Times
Date Fri, 21 Aug 2009 09:29:14 GMT
On 2009-08-21, Stefan Bodewig <bodewig@apache.org> wrote:

> I'd like to modify Resources to

>     (1) lazily initialize size() - Delete never asks for it, for
>         example.

>     (2) Cache the remaining iteration results when initializing size

http://svn.apache.org/viewvc?rev=806471&view=rev

> Does anybody see a problem with this?

It could be even more aggressive by always using the cache in iterator()
as well, but I suspect there is a reason we haven't cached Resources so
far at all.

Stefan

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


Mime
View raw message