ActionScript 3 speed optimization

  • Posted on: 7 July 2010
  • By: Jacob

I've recently come across some good articles on Actionscript optimization, so I thought I'd share them with those of you who are Flash coders. If you want to make your code/animation run faster, then there's a good chance something here will help.

This article talks about optimization in general, including a few non-code things:
http://www.nbilyk.com/optimizing-actionscript-3

This article talks about many math based code optimizations, which are things you might not think of at first:
http://osflash.org/as3_speed_optimizations

Here are some optimizations related with memory access:
http://www.boostworthy.com/blog/?p=231

Nicolas Cannasse (the creator of HaXe) has some interesting things to say on optimization:
http://ncannasse.fr/blog/flash_9_optimizations?lang=en

HaXe is a language that can comple to many other different languages (e.g. as PHP, JavaScript, swf) uses some optimizations which previously
could only be accessed if you compiled from C++ code with Adobe Alchemy. These optimizations are rather significant, even to the point that the wrote a whole version of the Sandy 3D engine based of of HaXe.

I hope this info was helpful to some of you devs out there. Let me know if you find some more interesting articles on optimization?

Comments

Hi, thanks for sharing.