English 中文(简体)
is smartGWT really as slow as its showcase is?
原标题:
  • 时间:2009-11-23 20:30:55
  •  标签:
  • gwt
  • smartgwt

I ve started implementing my web application using smartGWT. Is it really as slow as it is on the showcase?

It s practically unreasonably slow.

I m in a new empty project that all it does it display a modal window with a login form in onLoad.

this takes about 1 full minute to load.

I think it s just waiting for something and then poof it s loaded.

I m running it from eclipse, just clicking the green run button.

最佳回答

Initially Smartgwt will take a long time to load in client s browser because it downloads 2mb of javascript files. But performancewise it is not slow because smartgwt layouts are based on divs, but GWT layouts are based on tables.

The drawbacks of SmartGWT are:

  1. Downloads lot of javascript files.
  2. There is no image bundles used in smartgwt. Browser will make lot of requests for images. For a single button smartgwt uses 9 images.
  3. Customization is difficult. Applying our own css style is bit difficult compare to GWT.

Features:

  1. Datasource
  2. Existing attractive widgets
  3. Implementing animations are easy

So using smartGWT is depends on your requirement.If you have more time you can develop with GWT. If you have less time and you have to develop a big application use smartGWT.

问题回答

Edit: this user was running in GWT hosted mode, which is 10x or more slower than compiled mode. So he was not experiencing an actual performance issue.

We see people complain that their own (flawed) deployments are slow but not usually about the Showcase itself. Most likely, you ve got your browser configured for development or have tools installed that are slowing things down.

First, see if you have set your browser to non-default cache settings (such as "check every time"). This could cause images to be repeatedly re-requested. You can see this if you open the "Net" panel in Firebug, or with IE, use a tool like Fiddler.

However, about Firebug, Firebug and similar development tools greatly slows down the performance of the browser and leaks a great deal of memory. To see the Showcase how a normal end user would see it, disable Firebug and restart your browser in case it has been leaking memory.

Just took another look at the question - you are running in GWT Hosted Mode, which is much, much slower than Web Mode (how your final application is deployed).

However, even your experience in Hosted Mode is much slower than what you should see. We d had a couple of people with issues with hosted mode speed that ultimately found some kind of Eclipse / GWT misconfiguration was at fault - search the SmartGWT forums for some of the resolutions:

http://forums.smartclient.com/forumdisplay.php?f=14




相关问题
Refresh the UI in gwt

I have created some custom composite widget, which listens to an events (in my case loginEvent). Once the event is caught the state of the widget changes so as the way it should look (in my case I ...

How to create a development/debug and production setup

I recently deployed inadvertently a debug version of our game typrX (typing races at www.typrx.com - try it it s fun). It was quickly corrected but I know it may happen again. After digging on ...

GWT error at runtime: ....style_0 is null

My code works fine in IE 8, but on firefox 3.5, the javascript fails to load. I used firebug to figure out why, and the error I get is (GWT detailed mode) My suspicion is that some style is not ...

GWT s hosted mode not working

I ve been stumped for a while trying to figure out why my GWT demo app isn t working in hosted mode so I went back and downloaded the Google Web Toolkit again, unzipped it and simply went to the ...

How to disable Google Visualizations Tool Tips?

Does anyone know how to disable the tool-tip boxes that popup when a Google Visualizations chart is clicked (Selected)? Following the sample code at Getting Started with Visualizations, the "...

GWT 2 CssResource how to

I have a GWT 1.7 application and I want to upgrade it to GWT 2 Milestone 2. The application uses 2 big external CSS files. In GWT 1.7 I had a public folder and put both the CSS files in the folder and ...

热门标签