if you need to access them in a tight loop, arrays are much faster than
collections
(because accessing an array element is very fast compared to calling an
interface method to get at the corresponding item in a collection)

On Wed, Feb 4, 2009 at 2:37 AM, gsmd <[email protected]> wrote:

>
> The 'Writing Efficient Android Code' paper doesn't mention this: are
> arrays preferred over Collections in terms of performance? To what
> extend?
> TIA.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to