- 1、本文档共7页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
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
- 剧本杀行业2025年西北区域市场市场细分领域竞争态势与品牌竞争策略分析研究报告.docx
- 剧本杀行业2025年西北市场拓展前景预测报告.docx
- 剧本杀行业2025年长沙市场发展潜力分析报告.docx
- 剧本杀行业2025年长三角市场竞争策略与布局分析.docx
- 医疗行业数据合规:2025年数据安全法实施后的合规监管挑战与应对.docx
文档评论(0)