GWT Performance : Good or Bad ?

2,285 views
Skip to first unread message

dodo dard

unread,
Mar 27, 2012, 5:55:14 AM3/27/12
to google-we...@googlegroups.com
Helo,

I've got friends complaining about GWT/GXT (GWT Ext) performances, well I notice that if we put to many component with GXT, there will be a certain waiting time (3-4s) before it got completely loaded. They said that is better to write the application directly with Javascript that may I'm not agreed 100%. So guys, is there any solution, best practice, limitation or restriction using GXT/GWT ? Or it can't be helped ?

Honestly is fun using GWT/GXT, but I'm looking a performance solution too.

Regards,
Bowie

Frank

unread,
Mar 27, 2012, 7:54:52 AM3/27/12
to google-we...@googlegroups.com
GXT and SmartGWT have bad performance imo.
Better to write your own widgets (which takes a lot of time) using vanilla GWT and make them perform better.
That is what we did and our GWT projects have very high performance.

Op dinsdag 27 maart 2012 11:55:14 UTC+2 schreef dodo dard het volgende:

Raphael André Bauer

unread,
Mar 27, 2012, 8:06:27 AM3/27/12
to google-we...@googlegroups.com
On Tue, Mar 27, 2012 at 1:54 PM, Frank <frank....@gmail.com> wrote:
> GXT and SmartGWT have bad performance imo.
> Better to write your own widgets (which takes a lot of time) using vanilla
> GWT and make them perform better.
> That is what we did and our GWT projects have very high performance.

Also our experience. GWT is really really fast.


Cheers,


Raphael

>
> Op dinsdag 27 maart 2012 11:55:14 UTC+2 schreef dodo dard het volgende:
>>
>> Helo,
>>
>> I've got friends complaining about GWT/GXT (GWT Ext) performances, well I
>> notice that if we put to many component with GXT, there will be a certain
>> waiting time (3-4s) before it got completely loaded. They said that is
>> better to write the application directly with Javascript that may I'm not
>> agreed 100%. So guys, is there any solution, best practice, limitation or
>> restriction using GXT/GWT ? Or it can't be helped ?
>>
>> Honestly is fun using GWT/GXT, but I'm looking a performance solution too.
>>
>> Regards,
>> Bowie
>

> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/7IyvlvceBLUJ.
>
> To post to this group, send email to google-we...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-tool...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.

--
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

dodo dard

unread,
Mar 27, 2012, 8:28:53 AM3/27/12
to google-we...@googlegroups.com
Thanks Frank, 

I think that too, GXT make pretty component but very expensive and very big.
Btw I found an interesting website :  http://gxtvsgwt.appspot.com/ after looking at your anwser.

dhoffer

unread,
Mar 27, 2012, 10:12:25 AM3/27/12
to Google Web Toolkit
Regarding GXT I noticed that comparison website is using GXT 2.2.5 yet
is comparing with new GWT 2.4, if making GWT 2.4 compliant app one
would probably use the new GXT 3.0 which is in beta right now (almost
RC)...I wonder how that compairs to GWT 2.4. I hope not worse.

-Dave

Andy Stevko

unread,
Mar 27, 2012, 10:21:35 AM3/27/12
to google-we...@googlegroups.com
Bowie,
One issue that I've found when working with GXT and GWT is that they use different models for drawing the page elements. GWT tends towards attaching the elements into the DOM immediately whereas GXT caches the elements then attaches them in bulk.
This will tend to make them appear slow but is really an optimization on the rendering engine because it doesn't have to do a lot of recalculations.
--Stevko

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.




--
-- A. Stevko
===========
"If everything seems under control, you're just not going fast enough." M. Andretti





dodo dard

unread,
Mar 27, 2012, 10:41:11 AM3/27/12
to google-we...@googlegroups.com
Stevko,

Yes I'm aware of that too, but I think is not the problem with caching, is more about how many DOM object generated by GXT.
For a simple row in a grid, GXT will produce : a div ,a  table,a  tbody, a tr, a td. And is not only with the Grid.
I think that makes GXT heavier than GWT.

Bowie

Alain Ekambi

unread,
Mar 27, 2012, 10:49:26 AM3/27/12
to google-we...@googlegroups.com
Not trying to defend GXT or Smart GWT but what kind of applications are you building ?
We ve build some pretty large apps with GXT and never had any type of UI performance problems.



2012/3/27 dodo dard <kerat...@gmail.com>

Bowie

-- 
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

dodo dard

unread,
Mar 27, 2012, 11:53:53 AM3/27/12
to google-we...@googlegroups.com
Hi Nino,

Is a catalog application type, you search, list and modify products.
I have to precise some points : 
- my application will be used largely by IE8.
- Not all the screen have a performance problem.
- There is some :
  - screen that contains : 75 input form, 3 grids (well I have warned my client about not using to much components in one page).
  - A grid with 23 columns that contains at least 10 GridRenderer (well I'm working at it now by using less GridRenderer) .

Regards


Andy Stevko

unread,
Mar 27, 2012, 1:34:23 PM3/27/12
to google-we...@googlegroups.com
Yep - it sounds like GXT grids are overdriving the system. There hardly seems enough room for content with all that markup.  If you don't need all the bells and whistles that come with a gxt grid - it would pay to port to lighter weight GWT grids or plain <div> and css. Stripping out excess forms, element IDs, and css will lighten the load on the rendering engine.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Joseph Lust

unread,
Mar 27, 2012, 6:51:45 PM3/27/12
to google-we...@googlegroups.com
My company just completed a very large intranet UI using GXT. The overall lesson learned was don't use GWT. For the most part it was much slower and the model used in GXT did not extend well to our MVP setup. Perhaps GXT 3 has fixed some of these issues, but we don't want to deploy a framework that's still in beta.

Sincerely,
Joe

Shawn Brown

unread,
Mar 27, 2012, 8:54:14 PM3/27/12
to google-we...@googlegroups.com
Hi,

>A grid with 23 columns that contains at least 10 GridRenderer

GXT 3.0:
All data widgets support cells (instead of renderers)
Cells support events and can fire events
High performance via flyweight pattern

> the model used in GXT did not extend well to our MVP setup.

for GXT 3.0 (in beta) Models:
Support any bean-like object
Not forced to implement GXT interfaces
Not forced to use GXT model classes Interoperability with RPC,
RequestFactor, AutoBean

MVP support has changed too.

> GWT tends towards attaching the elements into the DOM immediately whereas GXT caches the elements then attaches them in bulk.

for GXT 3.0:
Components create their DOM at construction DOM available immediately

Shawn

Paul Stockley

unread,
Mar 27, 2012, 8:56:47 PM3/27/12
to google-we...@googlegroups.com
Seems this whole thread has more to do with GXT than GWT. We have built a large app, part of which runs on the ipad as a fullscreen web app and performance isn't a problem at all. We built most of our widgets ourself to be very efficient and we make use of HTMLPanels and raw html where it makes sense.

Raphael André Bauer

unread,
Mar 28, 2012, 5:47:01 AM3/28/12
to google-we...@googlegroups.com

the overall lesson was "don't use GWT"?
did you mean that or "don't use GXT"?

ra!

>
> Sincerely,
> Joe


>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/google-web-toolkit/-/Ur7JlMX0SjMJ.


>
> To post to this group, send email to google-we...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-tool...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.

--

dodo dard

unread,
Mar 28, 2012, 10:45:21 AM3/28/12
to google-we...@googlegroups.com
Finally, I've made my application faster.

The idea is not using GridRenderer and prepared the model in the server. For example I write <img src="http:/foo/toto.jpg"/> in the server than create an Image object in the client. Like I said, the target application is IE8 (not very performance), and by doing this I managed to reduce the grid loading time to almost a half.

Hope this help.

Sincerely,

Bowie

Frank

unread,
Mar 29, 2012, 5:09:31 AM3/29/12
to google-we...@googlegroups.com
That should be "don't use GXT" I pressume...

Op woensdag 28 maart 2012 00:51:45 UTC+2 schreef Joseph Lust het volgende:

Joseph Lust

unread,
Mar 29, 2012, 3:25:14 PM3/29/12
to google-we...@googlegroups.com
Oops, I meant don't use GXT. We've used pure GWT on another project with all bespoke widgets and despite a bleeding edge HTML5/SVG UI with tons of animations, data, and windows, the pure GWT examples runs circles around the other, simpler, GXT project. Sorry for the confusion, if there was any.

Sincerely,
Joe

Fabrice

unread,
Apr 4, 2012, 7:40:28 AM4/4/12
to Google Web Toolkit
I do this quickly : http://gxt3vsgwt.appspot.com/
thanks to code source of previous demo, by replacing GXT 2.2.5 with
Ext GWT 3.0 Release Candidate (http://dev.sencha.com/deploy/gxt-3.0.0-
rc.zip).

Performance are better !

dhoffer

unread,
Apr 9, 2012, 10:40:41 AM4/9/12
to Google Web Toolkit
Thanks for the updated comparison. I wanted to point out that the
summary line is not always correct. Examples:

GXT Render Time: 1ms
GWT Render Time: 0ms
GXT was 1x faster...

and

GXT Render Time: 1ms
GWT Render Time: 1ms
GXT was 1x faster...

-Dave

Daniel Mauricio Patino León

unread,
Apr 9, 2012, 10:45:20 AM4/9/12
to google-we...@googlegroups.com
What about the gxt 3 licence? I mean we are talking about GWT performace or a gxt3 vs gwt ?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.




--
ISC. Daniel Mauricio Patiño León.
Director ejecutivo
Liondev S.A. de C.V.



Reply all
Reply to author
Forward
0 new messages