GWT Speed Advice

92 vues
Accéder directement au premier message non lu

Killian

non lue,
26 févr. 2012, 13:42:5426/02/2012
à google-we...@googlegroups.com
Hi Lads,

Just wanted to get an advice with respect to my gwt app running pretty slow. I'm not very good with respect to display issue so apologies in advance if this question sounds obvious.
In order to speed up the app I've followed instructions in the GWT website and used extensively code breaking. Although it did make some improvements it's still pretty slow.

When looking in to the development mode console, I can see a lot of rebinding is going on. Would that be a reason why it's running so slow or is it normal for a gwt to be doing so many rebindings?

Thanks in advance for your advice,

Killian

Console output extract:

Rebinding com.google.gwt.ajaxloader.client.AjaxKeyConstants

Rebinding com.google.gwt.event.shared.SimpleEventBus

Rebinding com.google.gwt.user.client.ui.UIObject.DebugIdImpl

Rebinding com.extjs.gxt.ui.client.image.XImages

Rebinding com.google.gwt.user.client.ui.impl.ClippedImageImpl

Rebinding com.extjs.gxt.ui.client.messages.XMessages

Rebinding com.google.gwt.user.client.impl.DOMImpl

Rebinding com.google.gwt.dom.client.DOMImpl

Rebinding com.extjs.gxt.ui.client.core.impl.ComputedStyleImpl

Rebinding com.google.gwt.user.client.impl.WindowImpl

Rebinding biz.linguabox.client.services.UserWordService

Rebinding biz.linguabox.client.services.TagService

Rebinding com.google.gwt.user.client.ui.impl.TextBoxImpl

Rebinding com.google.gwt.user.client.ui.impl.FocusImpl

Rebinding com.google.gwt.i18n.client.impl.LocaleInfoImpl

Rebinding com.google.gwt.i18n.client.impl.CldrImpl

Colin Alworth

non lue,
26 févr. 2012, 15:08:3726/02/2012
à google-we...@googlegroups.com
The rebinding is how all of the GWT.create calls work, to build browser specific implementations of most of those (mostly to deal with browser differences), and to generate the needed source for a few (mostly i18n/clientbundle interfaces and RPC). This is perfectly normal, and expected.

As for addressing your speed issues, this is only something that should be happening when running dev mode, or when compiling to source - it should never affect the performance of the application when it is running in production mode. Newer versions of GWT provide the ability to cache generated classes, and only re-rebind them when dependent classes/files have changed - this might speed up dev mode, especially after the first page load.

Split points (which is what I think you are referring to as 'code breaking') will help some aspects of production mode performance, specifically how much code is downloaded/parsed when the page first loads (depending on how your app is structured, see the SOYC report for more details), but isn't likely substantially change dev mode performance, and will probably make compiling the app take somewhat longer.

Killian

non lue,
26 févr. 2012, 15:44:3826/02/2012
à google-we...@googlegroups.com
Hi Colin,

Thank you so much for your prompt reply. Very interesting, I really had no idea. At least it clarifies everything :-)

Cheers for that,

Killian
Répondre à tous
Répondre à l'auteur
Transférer
0 nouveau message