Flex Performance Guidelines
- Avoid nested container - it is resource intensive for Flex to figure out the x,y of the elements via sizing and measuring algorithm. Tips: hard-code x,y and width and height.
- Naviagtor containers have built-in deferred instantiation – eg. Accrdion, TabNavigator, ViewStack.
- Progressive layout improves initialization experience using queued creationPolicy in the deferred instantiation architecture. UI element are loaded in the successively fashion. Progressive layout does not quantifiably reduce application startup time, but it significantly improves the perceived startup time.
- Handle large data sets may make your Flex application appears slow. You can use pagination or other methods to address this. (reference).
- Improve charting performance
- All charts cache intermediary values in the transformation from data to screen, so that only the minimum amount of recalculation occurs in response to any change to the data or chart.
- The most expensive actions to perform in Flex charts is forcing a chart to redraw an axis, or forcing a chart to recalculate its labels. So, change dataProvider is costly in this sense.
- Use Runtime Shared Library (RSLs) to shrink the size of your application’s resulting SWF file. Because once you externalizing shared assets into standalone files, you can separately download and cache on the client. (reference)
- Use Profiler: getTimer() to record the time in millisecond in ActionScript.
Reference
Good Video: https://admin.adobe.acrobat.com/_a300965365/p71169528/