« Persistant Storage for EC2 is coming | Main | Me to Flex Builder Additional Compiler Arguments: "UR Dumped" »

April 14, 2008

Every little -as3 namespace bit helps ... I think

While trying to eke out every little last bit of performance in my flex app I ran across the -as3 compiler option. The LiveDocs state

Defines methods and properties of the core ActionScript classes that are fixed properties instead of prototype properties. When you set the "-as3" compiler option to true, the AS3 namespace is automatically opened for all the core classes. This means that an instance of a core class will use fixed properties and methods instead of the versions of those same properties and methods that are attached to the class's prototype object. The use of fixed properties usually provides better performance, but at the cost of backward compatibility with the ECMAScript edition 3 language specification (ECMA-262). 

I added it to my app, and ran some profiling. Not sure what to look for. If you have experience using it feel free to chime in now. Otherwise I guess I'll get back to trying to out-fox myself  doing nothing because there is no more hope.

 

— UPDATE : hat tip to josh for pointing this out. The -as3 compiler is automatically turned on. You’re supposed to use the -es compiler option if you do turn it off. Here’s a current link to the livedocs that gives more info.

 

 

 

 

 

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/t/trackback/2357234/28093204

Listed below are links to weblogs that reference Every little -as3 namespace bit helps ... I think:

Comments

I'm pretty sure the -as3 option is on by default. If you turn it off, I think you go into ECMAScript 4 mode where the prototypes become more flexible (like AS1/2 and JS).

Post a comment

If you have a TypeKey or TypePad account, please Sign In