0 Replies Latest reply on Feb 25, 2011 12:36 AM by Luis Pedro Ferreira

    Fastest 'for' operation?

    Luis Pedro Ferreira

      Hi guys.

       

      For you, what is the fastest loop operation?

       

      [1] this one?

      for(var index:String in arrayCollection){
      }
      

       

      [2] or this here?

      for(var i:uint = 0; i < arrayCollection.lenght; i++){
      }
      

       

      Both do the same, but in your opinion what is the fastes and why?