经常听到很多FlexDeveloper抱怨自己的电脑配置已经很高了,但是FlexBuilder Build projct的时候仍然很慢.
应该怎么办呢?
其实很简单,只要做到以下两点就可以提高编译速度,效果非常明显:

1. 不要使用Automatically Build, 使用Ctrl+B快捷键手动编译.
Build  Automatically :如果选择,每有一次修改,只要保存就会执行。
Build  All: 所有修改完毕,最后bulid 一次。
Build Project:
Build work set:
以"Build Automatically", "Build All" 和 "Build Project" 都是只编译更改的部分,只有"Clean"才是重新编译全部Resource.
如果你当前只有一个Project的话, "Build All" == "Build Project".
究竟是使用"Build Automatically ", 还是"Build All"应该是根据具体情况和个人习惯来选择的.比如说我修改一个功能需要改动五个文件,每个改完都需要Save,但是只有五个都改完才需要Build.这时候使用"Build Automatically"显然是不适当的,因为多编译了四次.

2. 关闭所有当前不用的Project, 最好只剩一个.

===========================================================================

Performance Tips Needed

David Coletta is putting out a call for Flex performance tips for his MAX talk. Please take a moment and think about any ideas you might have and send them his way!

I've gathered up some hints from some of the folks who've been thinking about compiler performance recently. Most are related to your system setup at this point, and admittedly they may be big requirements. We're trying to make major improvements as I write this :-) But in the meantime, these may help you...

System and Java related

  • Turn off virus scanning software
  • Don't compress or encrypt your filesystem (major cause of fragmentation and slowdown)
  • Windows users -- defragment regularly!
  • For plug-in users: Make sure you are running Eclipse under the 1.5 JRE:
    • On Windows, add -vm "C:\Program Files\Java\jre1.5.0_12\bin\javaw.exe" to your Eclipse shortcut
    • Command-line users: Make sure your JAVA_HOME is pointing to a 1.5 JRE, as well
  • Java is very sensitive to disk swapping/paging; make sure you've got 2Gb of RAM to start with, and:
    • Give Eclipse more memory so it doesn't need to garbage collect as often: (on Windows, e.g.) -vmargs -Xms512m -Xmx768m (the bigger -Xmx is, the better)
    • Give FCSH more memory by editing the jvm.config file in the SDK's bin directory
  • Untested: If you have a 64bit computer, you may be able to give the 64bit JRE more than 2gb of memory (if you have it) -- Flex does NOT need this much memory, but the more Java has, the less it will garbage collect...
  • Some users report that removing the -XX:MinHeapFreeRatio=20 setting for Flex Builder/Eclipse improves performance.
    • On Windows, just remove this argument in the Flex Builder shortcut that you use.

Flex Builder-related

  • If you do not need to run your applications in a web browser for development, you can improve your app's startup time and memory usage (from when you press the Play button in FlexBuilder) by turning off Generate HTML template in Project | Properties | Flex Compiler -- this will start your application in the standalone Flash Player (this should be sufficient for most applications that don't rely on running in a browser, or customized templates).
  • Disable Copy non-embedded assets in Project | Properties | Flex Compiler -- you will need to remember to copy/update these assets manually into the bin folder (if you have any).
  • For each non-library project, make sure you are building as few Application and Module MXMLs as you need. It's common for the list to increase over time (and accidentally) when you run temporary or unused applications (they get automatically added to the build list). Manager this list in Project | Properties | Flex Applications.
  • Close projects that you do not need open -- they consume memory!
  • If your application is composed of more than (roughly) three Flex Builder projects (e.g. a Flex Project and two Library Projects), you may find that refactoring your code into fewer projects will speed-up compile time, and reduce overall memory usage. You should, of course, keep your source code seperated into logical units, so this is for people that want to try a more extreme measure at the cost of elegance (and note that this hint goes against practices we recommended in the past, so we're looking to improve things here).
    • Another method that may work for you (and allow you to maintain your original code seperation and projects) is to take advantage of external source folders. In a new workspace, create a new project which will combine existing source from multiple locations, and use Project | Properties | Flex Build Path | Add Folder. For day-to-day development, you can use this project, and still keep the seperated projects.

FlexBuilder优化技巧相关推荐

  1. 模板 - 判断负环(超时高效优化技巧)、01分数规划

    整理的算法模板合集: ACM模板 判断负环 判正环求最长路,判负环求最短路 int n; // 总点数 int h[N], w[N], e[N], ne[N], idx; // 邻接表存储所有边 in ...

  2. sw如何缩放装配体_SolidWorks关于大型装配体的优化技巧(二)

    在之前的文章中,已经从SolidWorks的软件设置方面,阐述了关于大型装配体的优化技巧,包括:启用冻结栏,显示样式切换以及图像品质设置,今天将从工程师的日常设计规范上,给大家讲讲如何进行优化. 首先 ...

  3. php 随机在文章中添加锚文本_seo网站优化技巧之:8种优质锚文本的做法

    众所周知,质量最高的外链就是锚文本形式的外链,这种外链又称为锚链,当锚文本中嵌入了我们的目标关键词之后,这种锚链的权重传递效率最高.锚文本链接的质量高低,对关键词排名及网站权重的影响非常大. seo网 ...

  4. vue seo关键词设置_网站SEO常用优化技巧

    SEO(Search Engine Optimization)搜索引擎优化,简单来说,就是通过技术手段,帮助我们的网站上首页.不同的搜索引擎,排名算法也不尽相同,导致了各项参数的权重比值也就不一样,但 ...

  5. Java性能优化技巧

    Java性能优化技巧 参考了些书籍,网络资源整理出来,适合于大多数Java应用 在JAVA程序中,性能问题的大部分原因并不在于JAVA语言,而是程序本身.养成良好的编码习惯非常重要,能够显著地提升程序 ...

  6. 让win7系统高速运行的优化技巧

    这里要跟大家分享的是关于如何让win7系统高速运行的优化技巧,任何一款电脑系统用久了之后速度都会变慢,因此很多用户会到处寻找各种优化渠道,如果想要让自己的win7系统像新安装前一样的速度,其实我们只需 ...

  7. 数据库技巧——MySQL十大优化技巧

    2019独角兽企业重金招聘Python工程师标准>>> 作者:杰之蓝 WEB开发者不光要解决程序的效率问题,对数据库的快速访问和相应也是一个大问题.希望本文能对大家掌握MySQL优化 ...

  8. 5首页加载慢_5个 外贸建站谷歌SEO优化技巧

    外贸建站谷歌SEO优化技巧 想必是每个外贸建站人员真正关心并且想要熟练掌握的一门学问.同学们可能在很多网站或者博客上看到过相同标题的博客文章,这些文章质量参差不齐内容多种多样,所表达的观点和相关技巧难 ...

  9. jQuery 性能优化技巧

    原文地址:jQuery 性能优化技巧 博客地址:www.extlight.com 一.使用最新版本 jQuery 类库 二.合理使用选择器 # 推荐使用 $("#id") # 可以 ...

最新文章

  1. android studio使用问题——instant run
  2. symfony小练习-表白墙
  3. mybatis执行批量更新batch update 的方法(oracle,mysql)
  4. jsp文字上下居中显示_jsp中怎样让文字居中 ?
  5. comsol如何定义狄利克雷边界_COMSOL与Visual C++三维电阻抗有限元联合建模与仿真研究...
  6. IOS 支付宝支付开发流程
  7. excel两表格怎么根据关键词比较指定数据差异
  8. daemontools安装和使用
  9. Lumerical---FDTD仿真区域设置问题
  10. php函数-wordwrap,sprintf,ucwords,ucfirst,substr_replace
  11. 生活娱乐 如何像印度人学英语
  12. 计算机合成图像的过程码,专转本计算机习题
  13. android studio 页面布局
  14. C语言入门习题系列三(含答案)
  15. JavaWeb名片管理系统设计及详细分析
  16. Linux Signal (2): signal函数
  17. 一张图看明白电信云解决方案架构
  18. 架构君公众号推荐 第一期
  19. 阿里妈妈API接口;item_search - 按关键字或网址搜索商品
  20. 面向企业级的开源WebGIS解决方案--MapGuide(介绍)

热门文章

  1. AI迷航(全集) 读后感
  2. Python串口编程
  3. 华为m6能更新鸿蒙,华为M6怎么升级鸿蒙系统 M6平板升级鸿蒙系统教程
  4. 酱油详细 酿造工艺、等级划分、国家标准号,和选购食用注意事项
  5. javascript中回调函数的理解和应用
  6. 关于window下使用latex+texstudio的本科与硕士毕设模板制作
  7. spring boot2 添加拦截器后,thymeleaf页面无法正常解析
  8. Bootstrap系列之关闭图标
  9. js数组中深拷贝的方法
  10. linux安装eclipse提示错误,四种Eclipse安装错误的解决办法