For each should be much slower than a basic iterator as it has to walk the 
object's properties.

For each (var p:* in someObject)

And

For (var p:String in SomeObject)

Probably run at the same rate.

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Cato 
Paus
Sent: Tuesday, December 09, 2008 5:28 AM
To: [email protected]
Subject: [flexcoders] speed of the "for each" looping


Hi, all you experts :)

I'm tying to speed up my application and I use a lot of

exsample
for (var i:int = 0; i < 5; i++)
{
trace(i);
}

so is the "for each" looping faster ?

Reply via email to