2013-01-16 101 views

回答

3

GWT有9個不同的優化技巧從1級到9除了常規的編譯器層次的東西。但是,我們可以通過將其設置爲0來退出這些優化。這不建議在代碼中進行評論。

你或許可以拿起從GWT源代碼一些更多的信息,ArgHandlerOptimize.java

@Override 
    public String getPurpose() { 
    return "Sets the optimization level used by the compiler. 0=none 9=maximum."; 
    } 

從ArgHandlerOptimize.java的評論部分

* 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. 
+0

我看到你已經使用了force/source :) 我從未找過它,但我認爲它必須是開源的。它在哪裏託管? – Jonathan

+0

其開源:)。所有的冰雹谷歌和GWT隊打開精神! – SSR

+0

我有谷歌,並在github上找到它:) – Jonathan