Mykhaylo's blog

optimizing GWT module compilation

by admin on Aug.17, 2010, under GWT, optimizations

Usually you don’t have any problems to wait until GWT compiler finish compilation of 5-6 permutations. But today it takes up to 6 minutes for my project.

There are couple of lines which reduced compilation time, to 50% of usual time.

Put in your modulename.GWT.xml folowing:

<set-property name=”user.agent” value=”ie8″/>

and optionally

<extend-property name=”locale” values=”en_US”/>

First one will force the compiler to produce only one permutation, for IE8 only (note that your web app will not work in other browsers). The second will add one more permutation for chosen locale. Do not set it if you are ok to use the default locale only.

The other useful optimizations are related to production builds. These are compiler options:

-XdisableClassMetadata and -XdisableCastChecking

Their names are self-documented.

These and other optimizations you can find in Google IO 2010 session video “Faster apps faster: Optimizing apps with the GWT Compiler

Leave a Comment more...

Hello world, again…

by admin on May.27, 2010, under General

Let’s get started.

For today I’ve upload my training project – cityid-ua. It does simple thing – shows ukrainian cities by region with their phone codes and in perspective ZIP codes. I know, this is not kind of good ideas to describe project with russian text. But I spent much time to get it working and there are not so many tutorials on chosen technologies. Epecially I wanted to follow the best practices introduced by Ray Ryan in his presentation in 2009.  So I decided to share my experience.

Libraries and technologies were used:

For now you can take a look at the code and try the resulting application.

Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...

    Archives

    All entries, chronologically...