GWT编译器优化选项的默认值是什么? [英] What is the default value for the GWT compiler optimize option?

查看:166
本文介绍了GWT编译器优化选项的默认值是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

GWT有一个优化编译器选项,在官方文档中引用这里。它表示从0(无)到9(最大)的范围。与许多其他选项不同,不指定默认值。如果未指定,此选项的默认值是什么? 源码指示默认为9,但他们正在考虑将其改为8。

  / ** 
*可以指示限制优化的选项有利于编译时间更快
*。
* /

public interface OptionOptimize {
int OPTIMIZE_LEVEL_DRAFT = 0;
// TODO(stalcup):将默认值更改为8以平衡时间和收缩。
int OPTIMIZE_LEVEL_DEFAULT = 9;
int OPTIMIZE_LEVEL_MAX = 9;
}


GWT has an optimize compiler option, referenced in the official docs here. It indicates a range from 0 ("none") to 9 ("maximum"). Unlike many of the other options, no default is indicated. What is the default value for this option if unspecified?

解决方案

The source code indicates that the default is 9, but they are thinking about changing it to 8.

/**
 * An option that can indicates to restrict optimization in favor of a
 * faster compile time.
 */

public interface OptionOptimize {
  int OPTIMIZE_LEVEL_DRAFT = 0;
  // TODO(stalcup): change the default to 8 to balance time and shrinkage.
  int OPTIMIZE_LEVEL_DEFAULT = 9;
  int OPTIMIZE_LEVEL_MAX = 9;
}

这篇关于GWT编译器优化选项的默认值是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆