Skinner sez: Thou Shall Use Export Release Build!
Grant Skinner as post a great tip on his blog. When preparing a Flex project for release, make sure you use the Export Release Build menu item. The SWF that is generated when you run or debug your project contains a lot of extra byte code used for debugging and profiling your content.
This extra byte code has a very obvious effect on the size of your SWF (adding over 35% in some cases). It also has a less immediately obvious (but no less significant) effect on the performance of your application.
Grant points out that a 980kb SWF they built was reduced to 675kb, and some performance intensive code ran over 2.5x faster in the release build than in the debug version.
Thanks for the reminder!
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

December 10th, 2008 at 10:50 pm
Hi Chris,
Absolutely correct regarding the importance of using “Export Release Build”.
And equally important on getting SWF sizes down, is using the Framework caching too!
One fellow’s positive experience here:
http://tech.groups.yahoo.com/group/flexcoders/message/108149
The how to in the docs here:
http://livedocs.adobe.com/flex/3/html/rsl_09.html
Also a Flexcoders thread on this topic here (follow threads at the bottom of this page):
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg103723.html
Happy Flexing!
g