RE: [flexcoders] Re: speed of the "for each" looping

2008-12-12 Thread Gordon Smith
008 11:33 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: speed of the "for each" looping Funny. I didn't realize we were talking about iterating arrays with for..in until just now. I don't think we do that in Flex code. If the docs say arrays will iterate

Re: [flexcoders] Re: speed of the "for each" looping

2008-12-12 Thread Rick Winscot
PM > To: flexcoders@yahoogroups.com > Subject: Re: [flexcoders] Re: speed of the "for each" looping > > > I've spent a lot of time poking around inside the collections stack (it's just > interesting), and I can't find a situation where you'll get a dif

Re: [flexcoders] Re: speed of the "for each" looping

2008-12-11 Thread Josh McDonald
, 2008 2:57 PM > *To:* flexcoders@yahoogroups.com > *Subject:* Re: [flexcoders] Re: speed of the "for each" looping > > > > I've spent a lot of time poking around inside the collections stack (it's > just interesting), and I can't find a situation where you&#x

RE: [flexcoders] Re: speed of the "for each" looping

2008-12-11 Thread Alex Harui
McDonald Sent: Thursday, December 11, 2008 2:57 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: speed of the "for each" looping I've spent a lot of time poking around inside the collections stack (it's just interesting), and I can't find a situation whe

Re: [flexcoders] Re: speed of the "for each" looping

2008-12-11 Thread Josh McDonald
> Behalf Of *Dave Cragg > *Sent:* Thursday, December 11, 2008 3:08 AM > *To:* flexcoders@yahoogroups.com > *Subject:* Re: [flexcoders] Re: speed of the "for each" looping > > > > Could you clarify this? Does this non-guarantee apply to numerically > indexed arr

RE: [flexcoders] Re: speed of the "for each" looping

2008-12-11 Thread Alex Harui
dex order From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Dave Cragg Sent: Thursday, December 11, 2008 3:08 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: speed of the "for each" looping Could you clarify this? Does this non-guarantee apply to nu

Re: [flexcoders] Re: speed of the "for each" looping

2008-12-11 Thread Dave Cragg
Could you clarify this? Does this non-guarantee apply to numerically indexed arrays and ArrayCollections too? Or just to associative arrays and object properties? The docs imply that the order is maintained by for...in with numerically indexed arrays. It would be a big change if that were n

[flexcoders] Re: speed of the "for each" looping

2008-12-11 Thread Cato Paus
The book "ActionScript 3 Cookbook" and "ActionScript 3.0 Bible", talks about this issue, and your interesting disuions on this thread, have pointed me in the right way :) thanks .. By the way, my firm have the first build on a night watcher application, where we use Nokia NFC (RFID) to collect

RE: [flexcoders] Re: speed of the "for each" looping

2008-12-10 Thread Tracy Spratt
[mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Wednesday, December 10, 2008 6:01 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: speed of the "for each" looping So don't use for..in or for each... in if you care about the enumeration order. It coul

RE: [flexcoders] Re: speed of the "for each" looping

2008-12-10 Thread Gordon Smith
er 10, 2008 9:26 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: speed of the "for each" looping No enumeration order of for..in is not guaranteed From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Wednesday, December 10, 2008 8:55 AM

RE: [flexcoders] Re: speed of the "for each" looping

2008-12-10 Thread Maciek Sakrejda
Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: speed of the "for each" looping Date: Wed, 10 Dec 2008 09:14:38 -0800 Keep in mind that getItemIndex is horribly inefficient. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECT

RE: [flexcoders] Re: speed of the "for each" looping

2008-12-10 Thread Alex Harui
No enumeration order of for..in is not guaranteed From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Wednesday, December 10, 2008 8:55 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: speed of the "for each" looping Is the enumera

RE: [flexcoders] Re: speed of the "for each" looping

2008-12-10 Thread Alex Harui
Keep in mind that getItemIndex is horribly inefficient. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Cato Paus Sent: Wednesday, December 10, 2008 6:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: speed of the "for each" looping if you need to

RE: [flexcoders] Re: speed of the "for each" looping

2008-12-10 Thread Tracy Spratt
Subject: [flexcoders] Re: speed of the "for each" looping if you need to get the i you can use the getItemIndex::ArrayCollection --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Amy" <[EMAIL PROTECTED]> wrote: > > --- In flexcod

[flexcoders] Re: speed of the "for each" looping

2008-12-10 Thread Cato Paus
if you need to get the i you can use the getItemIndex::ArrayCollection --- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote: > > --- In flexcoders@yahoogroups.com, "Josh McDonald" wrote: > > > > *nods* > > > > I find that it's often much easier to read when you use for..in and >

[flexcoders] Re: speed of the "for each" looping

2008-12-10 Thread Amy
--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote: > > *nods* > > I find that it's often much easier to read when you use for..in and for > each..in rather than regular for. And since you need to have a "var current > = list[i]" or similar as the first line, If you onl

[flexcoders] Re: speed of the "for each" looping

2008-12-09 Thread Cato Paus
Hi and thanks for your deep explanation :) and yes I run the profiler, and are doing some improvement here and there, the real question is how the "for each" is working. I have been browsing the internet and all the bibels on ActionScript 3, but did not found any good explanation on the matter. -