(效率管理)FLE提高编译效率解决方案

上传人:管****问 文档编号:119706365 上传时间:2020-01-23 格式:DOC 页数:9 大小:101.90KB
返回 下载 相关 举报
(效率管理)FLE提高编译效率解决方案_第1页
第1页 / 共9页
(效率管理)FLE提高编译效率解决方案_第2页
第2页 / 共9页
(效率管理)FLE提高编译效率解决方案_第3页
第3页 / 共9页
(效率管理)FLE提高编译效率解决方案_第4页
第4页 / 共9页
(效率管理)FLE提高编译效率解决方案_第5页
第5页 / 共9页
点击查看更多>>
资源描述

《(效率管理)FLE提高编译效率解决方案》由会员分享,可在线阅读,更多相关《(效率管理)FLE提高编译效率解决方案(9页珍藏版)》请在金锄头文库上搜索。

1、提高Flex编译效率方案一问题描述:1二解决方案:1三编译效率测试2四推荐方案9一问题描述:编译效率是开发效率中的一个重要环节,以下几种情况使得FlexBuilder的编译效率低下,1).开发人员的机器配置太低(要求2G以上内存),2).工程中加载的模块太多甚至模块间有关联,3).每次修改都自动编译整个项目。除了机器要求之外,以下分析并提供了四种能够提高编译效率的方式。 二解决方案: 1. 采用模块化开发,不开发的就不引用,这样可大大加快编译速度。开发人员各司其职,最后发布的时候再统一builder。2. 把 Build Automatically 选项去掉,模块编译改用手动 Build,修改

2、完善之后才进行Build,该方式为增量编译。3. 采用fsch + ant编译模块,fsch是一个编译的后台程序,需要在开发机器上安装,通过ant执行 build.xml文件来调用fsch服务,build文件中的执行如下: 这种方式产生的模块swf文件较采用FlexBuilder合并代码编译的结果小,但是ant编译目前无法结合应用程序Main.mxml方式编译,因此编译结果的模块需要添加样式文件,如:。4. 安装YLZPlugin eclipse插件,在Flex模块文件上点击右键菜单“编译Flex模块”,这种方式编译简单,编译效率高而且不需要每次要编译一个模块就修改ant文件三编译效率测试以下

3、测试环境:CPU 2.4GHZ内存:2G开发工具Myeclipse8.5+FlexBuilder -Xmx768m-XX:MaxPermSize=256m-XX:ReservedCodeCacheSize=64m1. 采用fsch + ant 的方式编译第一次编译:Buildfile: E:workspaceYLZCBPantbuild-fsch.xml echo E:workspaceYLZCBP echo C:Program Files (x86)Fcsh Server/fcsh.jarbuildfcsh: fcsh Server is not responding. Probably i

4、t is stopped. Trying to launch. fcsh Server started fcsh Trying to connect. Attempt 1 of 5 fcsh Paused for 2 seconds. fcsh Trying to connect. Attempt 2 of 5 fcsh Connection established fcsh Send command: mxmlc E:workspaceYLZCBP/flex-src/modules/sysmanager/SysorgManager.mxml -output=D:greensoftwareto

5、mcat5.5.20webappsYLZCBPswf/modules/sysmanager/SysorgManager.swf -load-config=D:flexsdks4.0.0/frameworks/flex-config.xml -source-path=E:workspaceYLZCBP/flex-src -library-path+=E:workspaceYLZCBP/flex-lib/YLZFlex.swc;E:workspaceYLZCBP/flex-lib/YLZFlex_core.swc;E:workspaceYLZCBP/flex-lib/YLZFlex_report.

6、swc -link-report=E:workspaceYLZCBP/flex-src/Main_report.xml -theme=D:flexsdks4.0.0/frameworks/themes/Halo/halo.swc fcsh fcsh: Assigned 1 as the compile target id fcsh Loading configuration file D:flexsdks4.0.0frameworksflex-config.xml fcsh E:workspaceYLZCBPflex-srccomylzinfosysmanagerentitySysfuncti

7、on.as(9): col: 21 Warning: variable“TYPE_FOLDER”没有类型声明。 fcsh public static var TYPE_FOLDER=0; /节点 fcsh fcsh E:workspaceYLZCBPflex-srccomylzinfosysmanagerentitySysfunction.as(10): col: 21 Warning: variable“TYPE_LEAF”没有类型声明。 fcsh public static var TYPE_LEAF=1; /叶子 fcsh fcsh E:workspaceYLZCBPflex-srcco

8、mylzinfosysmanagerentitySysfunction.as(11): col: 21 Warning: variable“TYPE_BUTTON”没有类型声明。 fcsh public static var TYPE_BUTTON=2; /按钮 fcsh fcsh E:workspaceYLZCBPflex-srccomylzinfocommonsGlobals.as(11): col: 21 Warning: variable“SERVICE_CURRENTUSER”没有类型声明。 fcsh public static var SERVICE_CURRENTUSER=loa

9、dCurrentUser; fcsh fcsh E:workspaceYLZCBPflex-srccomylzinfocommonsGlobals.as(12): col: 21 Warning: variable“SERVICE_LOGIN”没有类型声明。 fcsh public static var SERVICE_LOGIN=syslogin; fcsh fcsh E:workspaceYLZCBPflex-srccomylzinfocommonsGlobals.as(13): col: 21 Warning: variable“SERVICE_LOGOUT”没有类型声明。 fcsh p

10、ublic static var SERVICE_LOGOUT=syslogout; fcsh fcsh E:workspaceYLZCBPflex-srccomylzinfocommonsGlobals.as(15): col: 21 Warning: variable“SERVICE_MENU”没有类型声明。 fcsh public static var SERVICE_MENU=sysfunction; fcsh fcsh E:workspaceYLZCBPflex-srccomylzinfocommonsGlobals.as(16): col: 21 Warning: variable

11、“SERVICE_SYSCODE”没有类型声明。 fcsh public static var SERVICE_SYSCODE=syscode; fcsh fcsh E:workspaceYLZCBPflex-srccomylzinfocommonsGlobals.as(21): col: 24 Warning: variable“SERVICE_SYSFUNCTIONQUERY”没有类型声明。 fcsh public static var SERVICE_SYSFUNCTIONQUERY=sysfunctionquery; fcsh fcsh E:workspaceYLZCBPflex-srccomylzinfocommonsGlobals.as(23): col: 21 Warning: variable“SERVICE_REPORTS”没有类型声明。 fcsh public static var SERVICE_REPORTS=loadStatisticalReports; fcsh fcsh E:workspaceYLZCBPflex-srccomylzinfocommonsGlobals.as(24): col: 21 Warning: variable“SERVICE_REPORTS_STATIS

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 商业/管理/HR > 经营企划

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号