17.4. Managing explosive permutation numbers
You’ve already seen that a basic application will have 6 permutations for the user.agent; add in some locales, say 10, and the number multiplies. Throw in some more properties, and the number of permutations can rapidly explode.
Compiling all of those permutations leads to long compile times. This is mitigated because development mode reduces the need to compile until you’re ready to deploy (unless you’re using a continual-compilation approach). You can further minimize the impact by using two compiler flags: -localWorkers and –draftCompile. The first allows you to harness multi-cores on your machines, and the second reduces the number of checks the GWT compiler makes, giving a faster compile time. ...
Get GWT in Action, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.