Monday, February 18, 2008

Code speed explanation!

The code isn't actually impossibly fast, in fact, it could be almost twice as fast (so I will be changing it shortly!)

It turns out, flash optimizes its arrays if they contain only integers, which my code happened to, but since I was using split to create the arrays, I can actually nearly double the speed the arrays are accessed, as well as speeding the build time by around 20% by changing from using split to either push or fixed length arrays!

So code will soon be even faster!

0 comments: