LD is tigger forever,CG are not brothers forever, throw the pot and shine forever.
Modesty is not false, solid is not naive, treacherous but not deceitful, stay with good people, and stay away from poor people.
talk is cheap, show others the code and KPI, Keep progress,make a better result.
Survive during the day and develop at night。
目录
概 述
相关工具如下:
maven从新版3.0后开始支持多线程编译
开启后1C后,统计时间这里出现”Wall Clock“字样,速度由原来的1分3秒到现在34秒,快了一倍了,那么是不是数字越大越好呢,经过测试改为,2,3,4,5,6时间没变化。
这里可以出一个对应的最佳曲线图。
增加跳过测试代码的编译命令: -Dmaven.test.skip=true;
增加编译 -Dmaven.compile.fork=true 参数,用以指明使用多线程进行编译;
如果用的 Maven 是3.×以上版本,可以增加 -T 1C 参数,表示使用每个 CPU 核心跑一个工程;
这里都是可以通过maven 的界面方式设置的,选择skip 跳过
使用多线程编译。
分析:
小结:
Maven 优化思路,请大家指正~