• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Performance Tuning-Rendering taking lot of time

 
Jhakda Velu
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Maneesh Godbole
Saloon Keeper
Posts: 11073
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this on dev or hosted mode?
 
Jhakda Velu
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11073
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11073
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic