Accessibility
Brandon Purcell

Brandon Purcell

 

Deepa Subramaniam

Deepa Subramaniam

 

Table of Contents

Created:
3 May 2004
Modified:
01 November 2004
User Level:
Intermediate, Advanced
Products:
Flex

Flex Application Performance: Tips and Techniques for Improving Client Application Performance

Macromedia Flex is a powerful platform that offers the ability to create Rich Internet Applications (RIAs). Misusing this power can result in areas of poor performance. Flex is like any other programming model because certain coding practices can be detrimental to the overall performance of your client application. This article describes some of the MXML coding practices that affect application performance on the client side and demonstrates simple techniques that will enhance the performance of your Flex application. More specifically, this article explores how to do the following tasks:

  • Decrease startup time
  • Take advantage of deferred instantiation to improve performance
  • Play complex effects smoothly
  • Use dynamically repeating controls for better performance
  • Improve performance of charting components
  • Leverage Runtime Shared Libraries (RSLs) for performance gains
  • Performance test your own Flex application

Note that the tips suggested in this article do not apply to all Flex applications. It is important to analyze the structure of your own application and modify the suggestions to tailor them to your needs. For ongoing coding and conceptual help, you can use the Flex support forums and Flex Developer Center.

Note also that this is the first part in a two-part article. The second part of this article, Flex Application Performance: Tips and Techniques for Improving Server-Side Performance, discusses the server-side enhancements and deployment options that you can use to improve the performance of your Flex application.

Requirements

To make the most of this article, you need the following:

  • Familiarity with Macromedia Flex and J2EE application servers (JRun, IBM Websphere, or BEA Weblogic)
  • Some experience building Flex applications. (Ideally, you should have built at least one simple Flex application. If you haven't, see Creating Your First Flex Application.)

Macromedia Flex

Learn more about Macromedia Flex.

Macromedia Flash Player 7

PDF Version of the Article


Feedback and Support

We have made every effort to ensure the accuracy of this article and all code included. Feedback for this article and all Flex performance issues is always appreciated. To submit feedback, please email us.

Detailed Table of Contents

 

About the authors

Brandon Purcell started at Macromedia/Allaire four years ago as a support engineer working with ColdFusion and JRun. He has worked with the Professional Services Group helping customers with their architecture planning, code reviews, customized training, load testing, and performance tuning. He has also worked on special projects including the clustering, load testing and deployment of the new macromedia.com website. During his tenure with Macromedia, he has supported ColdFusion, JRun, Flash Remoting, and has written white papers and articles on clustering and high availability with ColdFusion and JRun. Currently he is working as an escalation engineer for the Flex Server Support Organization. You can visit him at his website.

Deepa Subramaniam is a Product Manager on the Flex team primarily focusing on the Flex SDK. Before joining the Flex Product Management team, she was a lead engineer on the Flex 1-4 releases and has been working on Flex since its inception in 2003. She is the author of the Adobe Flex 3 for Dummies book and has a degree in Computer Science from UC Berkeley.