Flex的性能注意事项 [英] Flex performance considerations

查看:180
本文介绍了Flex的性能注意事项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

主要有哪些关键点的Flex开发者都应该记住,以提高Flex应用程序性能? 那些该来我的脑海中:

What are the main key-points a Flex developer should remember in order to improve performance of Flex applications? The ones which come to my mind are:

  1. 从更轻巧基类扩展的itemRenderer:即UIComponent
  2. 在使用suspendBackgroundProcessing设置为true动画
  3. 使用ArrayCollections中的ArrayList,而不是在适当情况下。
  4. useVirtualLayout在星火DataGroups(不幸的是这一步需要滚动条,使这条建议有效)
  5. SQLight性能优化的AIR应用程序(交易等)
  6. 大概分割长的数据加工成不同的帧? (从来没有这样做的,所以我可能是错误的)

什么是您尝试在开发你的FLEX3 / FLEX4 / AIR应用程序,以提高他们的表现?遵循的关键指导方针

What are the key guidelines you try to follow while developing your Flex3/Flex4/AIR applications in order to increase their performance?

推荐答案

在我看来,有很多人有性能问题瓦特/的itemRenderer。所以,我在这里一人贡献从来不使用绑定的itemRenderer。我解决了不少客户的内存泄漏的错误只是重写他们的itemRenderer使用dataChange事件,而不是具有约束力。

It seems to me a lot of people have performance issues w/ itemRenderers. So, my one contribution here to never use binding an itemRenderer. I fix a lot of customer "memory leak" bugs just by rewriting their itemRenderers to use the dataChange event instead of binding.

除此之外,我第二@Wade穆勒的评论如何避免嵌套容器尽可能多地。

Beyond that, I second @Wade Mueller's comment about avoiding nested containers as much as possible.

这篇关于Flex的性能注意事项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆