On Tuesday, August 30, 2011 3:33:16 AM UTC+2, Marcin Biegan wrote:
Hello,
I've recenty seen "High-performance GWT" talk from Google IO 2011 and
during the part about compiler options David Chandler said that "large
GWT projects can take several minutes to compile".
My current project takes about 1h to compile on average machine (i5
2.4GHz, 8GB ram, SSD drive, ~80k lines of code). We have 3 modules:
a) only 1 language so 6 permutation
b) and c) each 26 languages so 2*156 permutations
Is it normal to reach so high compilation times with similar
configuration?
Yes.
Second issue is the fact that the part of compilation before
permutation generation is taking quite a lot. It takes about 3-5
minutes before the first permutation starts and I belive that it
should be a lot faster. When I set compiler log level to more chatty
I can see what is going on, but there are no timestamps (is it easy to
add timestamps?) and I don't really know how much time which part
should take anyway. Does anyone have an idea how to debug the problem?
You can launch the compiler with the gwt.speedtracerlog system property set to a file, and that file will be generated using the Chrome SpeedTracer format, so you can load it later in Chrome's SpeedTracer extension.
java -Dgwt.speedtracerlog=compile-speedtracer-log.html -cp ... com.google.gwt.dev.Compiler ...