GWT maven编译的默认优化级别是什么?
根据,默认优化级别为-1。目前尚不清楚这与哪个优化级别相对应。那么,-1是否意味着代码在0到9之间的某个级别进行了优化?或者它完全是另一回事?这意味着它使用GWT编译器的默认值。我相信默认值是9GWT maven编译的默认优化级别是什么?,gwt,maven,Gwt,Maven,根据,默认优化级别为-1。目前尚不清楚这与哪个优化级别相对应。那么,-1是否意味着代码在0到9之间的某个级别进行了优化?或者它完全是另一回事?这意味着它使用GWT编译器的默认值。我相信默认值是9 请参阅和GWT有9种不同的优化技巧,从级别1到级别9,除了常规的编译器级别的东西。但是,我们可以通过将其设置为0来选择退出这些优化。如代码中所述,不建议这样做 您可能可以从ArgHandlerOptimize.java中的GWT源代码中获取更多信息 @Override public String
请参阅和GWT有9种不同的优化技巧,从级别1到级别9,除了常规的编译器级别的东西。但是,我们可以通过将其设置为0来选择退出这些优化。如代码中所述,不建议这样做 您可能可以从ArgHandlerOptimize.java中的GWT源代码中获取更多信息
@Override
public String getPurpose() {
return "Sets the optimization level used by the compiler. 0=none 9=maximum.";
}
* Set the optimization level from the command line. For now, level 1 is the same
* as draft compile, and level 9 is the same as the default (maximium optimization).
*
* TODO(zundel): In theory, a level 0 should be possible, where all optimizers
* are eliminated for the fastest possible compile. In practice, code generation
* depends on some optimizers being run.
从ArgHandlerOptimize.java的注释部分
@Override
public String getPurpose() {
return "Sets the optimization level used by the compiler. 0=none 9=maximum.";
}
* Set the optimization level from the command line. For now, level 1 is the same
* as draft compile, and level 9 is the same as the default (maximium optimization).
*
* TODO(zundel): In theory, a level 0 should be possible, where all optimizers
* are eliminated for the fastest possible compile. In practice, code generation
* depends on some optimizers being run.
我看到您使用了force/source:)我从未寻找过它,但我认为它一定是开源的。它托管在哪里?默认GWT优化当前为9,请参阅OptionOptimize.java相关的源代码: