To get the client side performance benefit, *strongly typed objects* are critical. An arrayCollection of dynamic objects will not be ideal.
Of course there are a lot of variable in performance questions. In my experience, data transport and in-memory processing are far smaller factors in the user experience than UI rendering. Certainly the ideal data transport architecture is RemoteObject, using amf to pass strongly typed objects. But that is significantly more difficult than passing around XML. If you choose to use XML, then you can derive the client-side performance benefits by using the XML to build an ArrayCollection of strongly typed VOs. If performance is a consideration, never use resultFormat="object" (the default) Tracy Spratt, Lariat Services, development services available -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Scott Sent: Tuesday, March 24, 2009 10:07 AM To: [email protected] Subject: RE: [flexcoders] Re: which one is better to use? I would agree 100%. In my tests XML is a lot slower to use and is especially seen when there are a large amount of rows being returned. If this is over the Internet then I would for sure use arrayCollection. XML is a very "wordy" structure and probably increases the amount of data being transfered by 30-50%. Scott ________________________________ From: [email protected] on behalf of valdhor Sent: Tue 3/24/2009 9:05 AM To: [email protected] Subject: [flexcoders] Re: which one is better to use? I have found that using an arrayCollection of typed objects is much faster for me. I don't have the overhead of the XML parser. It tends to depend on the amount of data being returned. In some of my cases I am returning 5,000+ rows of data. With typed objects this is around 175KB over the pipe. With XML it was over 5MB. HTH. Steve --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , Vikram Singh <vikisingh...@...> wrote: > > hello friends... > i am passing data request to php using RemoteObject from flex. > and php send back processed data to Flex. > which one is better in performance for flex application operation?? > 1. ArrayCollection > OR > 2. XML > which one is easy and fast accesable?? > all the data are storing in ArrayCollection and used it to displaying in flex components. > I feel that Array object is little bit slow. > Please suggest me the right option. > > Thanks. > > > Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ <http://messenger.yahoo.com/invite/> > -- This message has been scanned for viruses and dangerous content by MailScanner <http://www.mailscanner.info/> , and is believed to be clean.

