Why gwt is slow




















We are using GWT for first time in our application. And the app is very slow on IE. Business is very unhappy with performance. Can you please help me to bring this performance down to 1 sec. Install Speed Tracer and profile your application. HttpWatch, Fiddler, YSlow.. There is no silver bullet that can make your application faster without knowing anything about it!! Prema Monica. Although we have quite a few non-frontend people that have done so Ignacio Baca Moreno-Torres. Jens Nehlmeier. We actually went down a Svelt-ish like path with our react code - also a a little inspired by rawact.

It increased the per-component code but reduced the framework code We ended up heading back to react because of the tooling mainly Reacts DevTools and profiling was awesome but there was none for svelte But it was no comparison to svelte in smaller apps. Does GWT widget framework add some overhead that slows it down? Naive use of GWT widgets is slow We had to jump through a few hoops to get big tabular data displays working smoothly.

There are a few reasons for this slowdown although I must admit I have never deep dived to see how fixable they would be. However, here are my guesses for the slowdowns. With widgets when you add an event listener, an event listener is added to the actual HTMLElement attached to the dom.

If you have widgets that respond to clicks then you have event listeners. This is relatively slow, particularly when events can bubble and or be captured at multiple levels and they all run in separate javascript tasks IIRC. Whereas a more recent framework like react will add a single event handler at the top level element and perform all event handling in a single javascript task.

IIRC their synthetic event layer also makes a bunch of other assumptions that make handling a little faster. A lot of people complain about reacts synthetic event layer but the one significant advantage is that it makes it easy to code using a naive model i. You can probably optimize event handling in significantly in GWT but the simple case has the worst performance whereas models that use much more efficient models i.

A lot of the GWT widgets lifecycle handlers also occur in something named onConnected or onAttached or I forget what it is called in the widget framework. Post a Comment. About Contact Fun. The initial loading time is really depends on many factors. That takes few seconds to load and really depends on your internet speed. Coming to the part that rebuilding and recompiling for each request is wrong. In Gwt there are permutations which are specific to each browser.

Every major browser have it's own permutation.



0コメント

  • 1000 / 1000