Larg GWT Project and compile-time issue

As I do for my large GWT project, compilation time is getting more and more. If the best way is to split a module into several modules, how can I do this.

RESPECT

+4
source share
3 answers

The GWT compiler is inherently slow. Konoplianko gave some answers in his answer, but it will only be so far. There are 2 more compiler options that will help. You can play around with the number of workflows, usually from 1 to 2 will help, and sometimes 3, but depending on your system it will damage the compilation time when you go to a certain point (usually 3 in my experience). You can also use the -draftCompile option if using 2.1. GWT was designed with the intention that you only compile when you intend to deploy something that is not at development time. It was assumed that you use the host mode for development because it can track what has changed and only recompile what is needed, instead of recompiling everything. I'm not sure if this will help, but changing output from OBF to DETAILED or vice versa can affect compile time.

+3
source

I do not think that merging a project with modules will help. on the contrary, it can even slow down the collection. Compilation speed depends on the number of permutations that GWT compiles.

What can you do:

  • Compile the GWT project for only 1 web browser. You can define this explicitly in the GWT configuration file. <set-property name="user.agent" value="ie6"/> Other options are ie6, gecko1_8, safari.

  • Reduce the number of languages ​​used (for the development phase). Use only 1 language.

+4
source

Here are two topics that I think will be useful to you.

How to get GWT to compile multiple modules and How to speed up the gwt compiler?

+1
source

Source: https://habr.com/ru/post/1333780/


All Articles