[android-developers] Re: Are ArrayList / Hashtable's bad for gc on Android?

2009-04-03 Thread Romain Guy
It's actually not a large number, Views usually don't have many children. This implementation has nothing to do with the GC. The goal is to avoid going through method calls to manipulate the group's children. On Fri, Apr 3, 2009 at 4:32 AM, Stoyan Damov wrote: > > Using hand-crafted code, you c

[android-developers] Re: Are ArrayList / Hashtable's bad for gc on Android?

2009-04-03 Thread Stoyan Damov
Using hand-crafted code, you can control how much your backing array grows -- I suspect ARRAY_CAPACITY_INCREMENT is quite a big number. Cheers On Fri, Apr 3, 2009 at 1:44 PM, admin.androidsl...@googlemail.com wrote: > > I notice in the source code they are not used in critical loops, e.g. > in