- 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
- 垂体瘤患者全病程管理:临床特征、精准诊治与术后优化策略探究.docx
- 基于多源数据融合的滚动轴承健康状态评估与剩余寿命预测研究.docx
- 基于复杂自适应系统的大型旅游建设项目规划:理论、实践与创新.docx
- 新课程理念下高中信息技术课教学评价的创新与实践研究.docx
- 预期视角下大学生助老行为的影响机制与促进策略研究.docx
- 以文本细读赋能高中语文小说教学创新的多维探索.docx
- 差异化与精准触达:工行JN分行女性客群个人金融业务营销策略解析.docx
- 频率与关联度对中国非英语专业硕士生学术词串加工的影响:基于认知与实证的双重视角.docx
- 科技赋能体育:体育场馆智能化系统规划设计的深度剖析与实践探索.docx
- 探寻高中数学阅读教学密码:策略与实践的深度剖析.docx
文档评论(0)