- 1、本文档共7页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 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
您可能关注的文档
- 200901国际运输与保险(200901 international transportation and insurance).doc
- 2009—2010学年山东省荣成市第二实验中学七年级语文上学期期中质量检测试卷(2009 - 2010 school year, second experimental middle school, Shandong, Rongcheng, grade seven, Chinese language, mid-term term, quality test paper).doc
- 2007年江苏省连云港市中考语文试卷(Chinese language examination paper in Jiangsu City, Lianyungang Province in 2007).doc
- 2009—2010年第一学年关爱留守儿童工作总结(Work summary of caring for left behind children in the first year from 2009 to 2010).doc
- 2009——2010学年第一学期六年级数学期末试卷(2009 - 2010 school year, the first semester, grade six math final exam).doc
- 2009年高考地理热点(专题)试题集锦(Highlights of the 2009 college entrance examination for geographical topics (Topics)).doc
- 2009年自考《马克思主义基本原理概论》复习资料(Review the materials of Marx's basic principles of Marxism in 2009).doc
- 2009年湖北省高考数学试题答案(文数)(In 2009, Hubei province college entrance examination mathematics examination questions answer (text number)).doc
- 2009年税务系统竞争上岗试题附答案-税易网(In 2009 the tax system of competition questions with answers - tax.).doc
- 2009年全国美术高考试题1天津市联考考题 素描正面男老人头像默写(In 2009 the national fine arts college entrance examination exam exam 1 Tianjin sketch positive male Claus head dictation).doc
- flash闪存(flash闪存).doc
- flic动画文件的播放程序设计(FLIC animation file player design).doc
- flsha动画(Flsha animation).doc
- foxmail修复技巧(Foxmail repair skills).doc
- fluent6.2双核并行效率(FLUENT6.2 dual core parallel efficiency).doc
- fluent 经典问题 请问双cpu并行计算的效率问题(Fluent classic question, the efficiency of Dual CPU parallel computing).doc
- freertos co-routine 分析(FreeRTOS co routine 分析).doc
- fsb系列氟塑料合金离心泵(FSB series fluorine plastic alloy centrifugal pump).doc
- g71 g72 g73的格式(G71 G72 G73 format).doc
- gac答案9章(宝石矿床学)(GAC answer 9 chapter (gemological deposit Science)).doc
文档评论(0)