aspose file tools*
The moose likes GWT and the fly likes Performance Tuning-Rendering taking lot of time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Performance Tuning-Rendering taking lot of time" Watch "Performance Tuning-Rendering taking lot of time" New topic
Author

Performance Tuning-Rendering taking lot of time

Jhakda Velu
Ranch Hand

Joined: Feb 26, 2008
Posts: 166
Hi All
I am using GWT 2.x and find that the rendering of my page takes really long time. Once rendered, if i refetch data for the entire page again, it is done in milli seconds

I find that the myContainer.layout() method takes max time.

I have set the sizes of all components in one shot after adding to the container to avoid redundant rendering as pointed out by google here
Google Speed tracer Redundant layout example

As already stated, If i relaod data for the page. it si refreshed very fast(<150ms ).

Any tips to resolve this sluggishness are welcome

Warm Reg
Jhakda


If I become filthy rich, I'll sponsor research for painless dental treatment at Harvard Medical School. Thats why,I'm learning Java.I have 32 teeth, 22 are man made.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10376
    
    8

Is this on dev or hosted mode?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Jhakda Velu
Ranch Hand

Joined: Feb 26, 2008
Posts: 166
Hi

Maneesh Godbole wrote:Is this on dev or hosted mode?


I've tested this both in dev as well as hosted mode. In dev mode, its even more slow. In hosted mode, it takes around 7 secs for page to load. Service layer takes 50-75ms to process and fetch data.
I have put logger in my onResponseReceived method and i can say that it takes no less than 6 sec for rendering.

Warm Regards
Jhakda
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10376
    
    8

1)How have you set things up?Base page loads -> Call server for data->Update UI.
2) Are you using RPC?
3)Which widget are you using and how are you populating the data?
Jhakda Velu
Ranch Hand

Joined: Feb 26, 2008
Posts: 166
Hi
Thanks for your reply.
Here is what we do:
1. We use RequestBuilder to make calls to our service
2. On receiving response(JSON string), we create the required UI.

If i am refreshing data for the same screen(say, onchange of a combo box value), the refresh is very fast.

We use various widgets, like fieldsets, comboboxes, grid etc and we put it on our formPanel

I find the page working fast in Firefox, but very slow in IE8.
Users will be using IE8

Thank you
Jhakda
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10376
    
    8

If you make a server side call after the page loads for the first time, you want to use something like the Dictionary. That way you can have your server embed the initial data in the page itself which your code can access. This will save you one round trip.

Sorry. Cannot offer any insights in the IE issue. I dont use windoze.
Jhakda Velu
Ranch Hand

Joined: Feb 26, 2008
Posts: 166
Hi Nitin
Thank you for your help.

I do not see a major issue with call to server. Its the rendering that is taking time.
When data is refreshed, that comes up really fast.

All users have IE8 as the browser, no control over that.

Thanks
Jhakda
Charan kumar sarvepalli
Ranch Hand

Joined: Dec 14, 2008
Posts: 40
hi i am also facing some issue like this, to tune the perfomance in IE8 we need to reduce the no of loop iterations is one way...

but still i have less number of iterations my view is taking time to load still i am in the same phase like you in perfomance tunning only. IE8 browser only


-- Charan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Performance Tuning-Rendering taking lot of time