> the fastest loop through an array is:
>   var len = myArray.length;
>   while( len-- ) {
>     ...
>   }
> yes, it's faster then for..in.

Not always. Sometimes, this loop is faster than a while (i--)

for (var i = items.length; --i - (-1); ) {
        ...
}

It's ugly, yes, but it is faster than while (i--) depending on how many
items you're iterating through.  Run some tests if you don't believe me.  :)

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to