`
taiwei
  • 浏览: 19227 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
最近访客 更多访客>>
社区版块
存档分类
最新评论

Performance Tips for Adobe Flex Mobile Apps

 
阅读更多
I just attended a session at Adobe Max given by Evtim Georgiev and Steve Shongrunden on performance tuning mobile Flex apps.  Since I'm a performance geek, I thought I'd post the tips here

How to optimize your mobile view rendering


1.Avoid heavy components
2.Defer object creation (lazy)
3.Use BitmapImage instead of Image
4.Use Group (with a Rectangle) instead of BorderContainer
5.Reduce nested Groups
6.Use mobile optimized component skins
7.Use ConstraintLayout instead of nested VGroup and HGroup
How to increase your Frames Rates


1.Use cacheAsBitmap on images that don't change often but redraw often
2.Avoid a lot of nested containers
3.Use ContentCache class for caching server side data - cache on by default, queue off by default
4.Use PNG for all images (much faster than jpg/gif)
5.Use Label over RichText over RichEditableText (Label is a LOT faster than the other two)
6.StyleableTextField (turn off edit and selection if not needed) - This is used by LabelItemRenderer and IconItemRenderer (can't use directly in MXML)
7.StyleableStageText - new in 4.6.  Use this very responsive editing and scrolling (used by mobile TextINput andTextArea (can't use directly in MXML)
8.Create ItemRenderes in MXML.  Use mobile-optimized IconItemRendererand LabelItemRenderer
9.Avoid creating heavy ItemRenderers (don't use heavy (text) components.  Turn off autoDrawBackground if not needed.  Avoid Filters/drop shadows.
10.Avoid complex binding expressions (i.e. on scrollable content)
11.Reduce nested Groups

Some other tidbits: Why are Adobe mobile optimized components better?

•Use StylableTextField (lightweight layout)
•More sophisticated ContentCache
•Their configurable (use styles for properties)

What's coming in Flex 4.6?

•On demand scrollbars (created when touch interaction starts) - up to 15% faster for list based views
•ItemRendererFunction recycles, so now it's mobile friendly
•32-bit rendering in Android available, but 16-bit rendering is faster
分享到:
评论

相关推荐

    High-Performance.iOS.Apps.149191100X

    Through specific and concise tips for designing and optimizing your apps, author Gaurav Vaish provides solutions to many common performance scenarios, including reusable code that you can put to work ...

    Flex Builder Plug-in and Adobe

    ### Flex Builder Plug-in and Adobe: An In-depth Exploration In the dynamic world of web development, especially in the realms of Flash and Flex, the integration between Eclipse and Flex Builder has ...

    Test Plan for RF Performance Evaluation of Wi-Fi Mobile Converged Devices V2.0.2

    This test document specifies test methodologies and performance criteria for the RF performance evaluation of WiFi mobile converged devices. The scope of testing includes Handheld, self-contained Wi-...

    Lua Performance Tips.rar

    "Lua Performance Tips"这份文档深入探讨了如何通过遵循一些编程准则和技巧来提升Lua程序的执行效率。以下是对这些要点的详细解析: 1. **理解Table的运作机制** Lua中的Table是其核心数据结构,用于实现数组、...

    Test Plan for Mobile Station Over the Air Performance

    《移动站空中性能测试计划》(Test Plan for Mobile Station Over the Air Performance)旨在为执行辐射射频功率(Radiated RF Power)和接收器性能(Receiver Performance)测量提供明确的CTIA认证程序测试要求。...

    Accelerating MATLAB Performance 1001 tips to speed up MATLAB programs

    Accelerating MATLAB Performance: 1001 tips to speed up MATLAB programs By 作者: Yair M. Altman ISBN-10 书号: 1482211297 ISBN-13 书号: 9781482211290 Edition 版本: 1 出版日期: 2014-12-11 pages 页数: ...

    Flex Application Performance: Tips and Techniques

    本文旨在深入解析《Flex Application Performance: Tips and Techniques》这一资料中的关键知识点,帮助读者理解如何有效地提升Flex应用的性能。 #### 执行摘要 《Flex Application Performance: Tips and ...

    High.Performance.Mobile.Web.14919125

    This book will give you the knowledge and tools to measure your mobile website or webapp performance, how to find bottlenecks and the tips to deliver the fastest possible experience to end-users. ...

    Unite Europe 2017 - Squeezing Unity: Tips for raising performance

    Unite Europe 2017 - Squeezing Unity: Tips for raising performance 就是关于如何提升性能的 YouTube 对应的 https://www.youtube.com/watch?v=_wxitgdx-UI&index=7&list=PLX2vGYjWbI0Rzo8D-vUCFVb_hHGxXWd9j

    Mobile Web Performance Optimization(PACKT,2015)

    Mobile Web Performance Optimization is designed to help you do exactly that – it’s been created to help you build fast, and mobile-user-friendly websites and applications. Featuring guidance ...

    High Performance Mobile Web

    Optimize the performance of your mobile websites and webapps to the extreme. With this hands-on book, veteran mobile and web developer Maximiliano Firtman demonstrates which aspects of your site or ...

    High Performance iOS Apps Optimize Your Code for Better Apps 无水印pdf

    High Performance iOS Apps Optimize Your Code for Better Apps 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源...

    High Performance iOS Apps- Optimize Your Code for Better Apps 无水印pdf

    High Performance iOS Apps- Optimize Your Code for Better Apps 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源...

    如何在Flex中使用profile的教程

    #### Flex性能优化:使用Adobe Flex Profiler Adobe Flex Profiler是一款功能强大的工具,可以帮助开发者识别Flex应用程序中的性能瓶颈或内存泄漏问题。通过本教程,我们将详细介绍如何利用Adobe Flex Profiler进行...

    High Performance Computing for Big Data Methodologies and Applications azw3

    High Performance Computing for Big Data Methodologies and Applications 英文azw3 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除

    Oracle Database 12c Release 2 Performance Tuning Tips and Techniques

    本文将基于《Oracle Database 12c Release 2 Performance Tuning Tips and Techniques》这本书中提及的关键知识点进行详细介绍。 #### 二、Oracle Database 12c R2的新特性与性能改进 1. **内存管理和优化**:12c ...

    High Performance iOS Apps: Optimize Your Code for Better Apps [2016]

    If you’re an iOS developer with app-building experience, this practical guide provides tips and best practices to help you solve many common performance issues. You’ll learn how to design and ...

Global site tag (gtag.js) - Google Analytics