网站大量收购独家精品文档,联系QQ:2885784924

flex性能贴士(Flex performance tips).doc

  1. 1、本文档共7页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
flex性能贴士(Flex performance tips)

flex性能贴士(Flex performance tips) Flex application performance tips In general, keeping the code clean is a good habit, so that the code is not only well formed and readable, but it wont miss anything. No memory leaks, no CPU detection tools, that is, a clean object that can be recycled by GC. 1) manage your event monitoring - this message has double implications. First of all, you should often remove no longer need event, because they lead to hinder the garbage collection object references, it is equivalent to a memory leak, it is difficult to carry out the tracking performance, is not conducive to the application. You can monitor events by referencing events to minimize memory leaks, but you should still clean them when you dont need them. The second is that if you fail to remove event listeners, you can cause performance problems. Event handlers can be triggered in your application, and you may not be aware of them. You send an event in the child component, and the handle on the DOM tree (upper class object) triggers the same event. If you dont want this to happen, keep the event handlers clear; let them handle specific event types and remove them when your application no longer needs them. 2) dismount loader and time, when you use loader based objects (images, SWFLoader, etc.), call unloadAndStop () to dismount content from the loader, and calling GC is a good habit. This frees valuable system resources, and without the need for CPU cycles, they are not wasted. I often do this for static image files to prevent excessive memory usage. 3) processing - Ive found that creating a dispose () function in a custom component, a data manager, or in the view of cleaning an object resource is a great idea. When you use an object, the dispose () method needs to be called explicitly, but the dispose method handles any of the required items to clean the object and free the resources. For example, stop the timer, remove events, listen, dismount the loaded object, set the referenc

您可能关注的文档

文档评论(0)

f8r9t5c + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8000054077000003

1亿VIP精品文档

相关文档