19.4. Summary

Optimization is at the heart of GWT. Starting with the compiler, GWT literally rewrites your Java code, making it more efficient in terms of both execution time and size. As you saw in the chapter on client bundles, GWT reduces the number of files that need to be downloaded by embedding them in your application code. And let’s not forget the i18N and locale support, where GWT creates a separate version of the compiled output for each supported language, as opposed to a single bloated artifact.

GWT does a lot of the optimization for you, but it can’t do everything, which is why it also provides some of the tools we covered in this chapter. Lightweight metrics don’t do anything by themselves, but if you use them wisely you’ll gain ...

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.