I have large project and it takes nearly 15 mins to compile through ANT. You can see I have already tried with parrallel with no success. Also experimented with localWorkers but didn’t observe much difference. I am using i3 processor with 4 GB RAM. Please suggest all optimizing parameters for compiling this code quickly. But it has to be production quality :).
<target name="largeProject-gwtc" depends="largeProject-compile" description="GWT compile to JavaScript">
<!--parallel threadsperprocessor="1"-->
<java failonerror="true" fork="true" classname="com.google.gwt.dev.Compiler">
<classpath>
<pathelement location="../common/src"/>
<pathelement location="../largeProject/src"/>
<pathelement location="build/largeProject/war/WEB-INF/classes"/>
<fileset dir="build/largeProject/war/WEB-INF/lib" includes="*.jar"/>
<pathelement location="${gwt.sdk}/gwt-user.jar"/>
<fileset dir="${gwt.sdk}" includes="gwt-*.jar"/>
</classpath>
<!-- add jvmarg -Xss16M or similar if you see a StackOverflowError -->
<jvmarg value="-Xmx2048M"/>
<jvmarg value="-XX:MaxPermSize=1024m"/>
<arg line="-war"/>
<arg value="build/largeProject/war"/>
<!-- Additional arguments like -style PRETTY or -logLevel DEBUG -->
<arg line=""/>
<arg value="com.test.web.largeProject"/>
</java>
<!--/parallel-->
</target>
Not really. You can do some tricks for speeding up compiler but that applies mainly to development (not production ready state).
So nope, no magic is going to happen to save you. GWT compiler is slow and that’s currently one of the biggest downsides of GWT.