The List classes wrap arrays because they expect change events, but the
set of DataGridColumn and many other things are Arrays, and sometimes it
is faster to work directly with the Array inside the ArrayCollection.

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of rmarples
Sent: Friday, February 01, 2008 10:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Array vs ArrayCollection

 

But don't most controls internally wrap the array set as a dataprovider
into an 
arraycollection?

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> You should use Array anywhere you don't need binding or events that
> indicate changes to the array.
> 
> 
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
[mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of Teddy Setiawan
> Sent: Thursday, January 31, 2008 8:39 AM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Subject: RE: [flexcoders] Re: Array vs ArrayCollection
> 
> 
> 
> I have the same problem regarding slower performance using
> arraycollection in some iterating process.
> Then I change it to array , but I get another big problem......memory
> leak.
> 
> I use the array for small iterating process and using arraycollection
> for larga data.
> 
> 
> 
> 
> 
> 
> 
> ________________________________
> 
> 
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> From: [EMAIL PROTECTED]
> Date: Thu, 31 Jan 2008 16:18:46 +0000
> Subject: [flexcoders] Re: Array vs ArrayCollection
> 
> This is something I too wonder about from time to time. I notice
> alot
> of developers are using the ArrayCollection for data binding but
> I
> can't say with 100% confidence why one would be used in any
> specific
> problem domain opposed to a basic array. I guess if you find you
> want
> to use the functions exposed by the ICollectionView and IList
> interfaces the ArrayCollection is your tool. 
> 
> Anybody have any clear examples? 
> 
> Nick
> 
> --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> 
> <mailto:flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> > , "rmarples" <rmarples@> wrote:
> >
> > We have recently made some big performance gains in our
> product by
> replacing the use of 
> > ArrayCollections with Arrays in some data calculation
> algorithms. It
> appears that even 
> > iterating through an ArrayCollection is significantly slower
> than an
> Array. 
> > 
> > My question to you all is... what have you found to be the
> best
> place to use one of the other 
> > in your applications? 
> > 
> > Ryan
> >
> 
> 
> 
> 
> 
> ________________________________
> 
> Connect and share in new ways with Windows Live. Get it now!
>
<http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_01
<http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_01
> 
> 2008>
>

 

Reply via email to