optimizing GWT module compilation
by Misha on Aug.17, 2010, under GWT, optimizations
Usually you don’t have any problems to wait until GWT compiler finish compilation of 5-6 permutations. But today it takes up to 6 minutes for my project.
There are couple of lines which reduced compilation time, to 50% of usual time.
Put in your modulename.GWT.xml folowing:
<set-property name=”user.agent” value=”ie8″/>
and optionally
<extend-property name=”locale” values=”en_US”/>
First one will force the compiler to produce only one permutation, for IE8 only (note that your web app will not work in other browsers). The second will add one more permutation for chosen locale. Do not set it if you are ok to use the default locale only.
The other useful optimizations are related to production builds. These are compiler options:
-XdisableClassMetadata and -XdisableCastChecking
Their names are self-explanatory.
These and other optimizations you can find in Google IO 2010 session video “Faster apps faster: Optimizing apps with the GWT Compiler“