Mike Chambers

code = joy

Archive for the ‘as3 vector performance’ tag

ActionScript 3 Vector / Array Performance Comparison

with 18 comments

In my original post on the new Flash Player 10 Vector class, I did a simple example that showed Vectors being slightly faster than Array when just populating and looping through collections.

Below is another example that shows a more significant performance increase when using Vectors. In this example, I populate an Array and Vector with 5 million random numbers, and then loop through them and average all of the numbers.
Read the rest of this entry »

Written by mikechambers

September 24th, 2008 at 4:48 pm

Posted in General

Tagged with