views:

421

answers:

3

I'm using eclipse galileo with latest GWT 2.0 version in development mode, but it runs really slow (i should wait about 1 minute to open one page, but after compilation, my application works very well when I run it using tomcat 5.5).
My code is not too heavy & i guess there is an os-related or software inconsistency problem, because I'd this problem before, but when i reinstalled my windows vista sp2 (I formatted my windows drive & reinstalled it), my problem solved for just some days & then again it became to slow !
I didn't install any special software on my windows, so i really dont know why this problem occures ???
any suggestion ?

+1  A: 

First time you load the page, it loads all the necessary javacode (and the JVM). Later, each refresh of the page will only loads the changed javacode then execute the whole (I might be wrong though). So if you're closing the browser then reopening your page each time you want to see the changes you made, yes it's going to be slow. If you refresh the page each time, it SHOULD be fast (if the changes you made weren't huge).

Eclipse + GWT 2.0 is not the reason why it's slow... (by the way Shubhkarman, if I'm correct there is no GWT plugin for netbeans...)

Zwik
Ehsan Khodarahmi
Ehsan Khodarahmi
No, you should *not* close the browser. Like Zwik said, after the initial load (which might take a minute and make the browser unresponsive), all the subsequent refreshes should be very fast. If *that's* not the case, then we can investigate further.
Igor Klimer
Ehsan Khodarahmi
A: 

I've found that the performance difference between running the GWT hosted mode in debug vs. non-debug to be large. If you're running with debug, try running without to see if that helps.

The initial page load can be slow, but once you get going just clicking refresh on my browser reloads the updated project in just a few seconds.

Yes, that's true, when I browse my projct in run mode instead of debug mode, its speed is OK. but what's the problem ?I need to execute it faster in debug mode, because with such slow speed it takes 100 years for debugging an application !!!Any idea ?!
Ehsan Khodarahmi
I don't know if any except trying to minimize the amount of time you are using debug mode. I find that most of the time I can figure out my problem without using debug mode.
May sometimes i can figure out my problem without using debug mode, but there are many situations which i have to use debug mode (for example u can't specify any breakpoint or see variable values in running mode). so, this is not the solution, this is just cleaning the question !
Ehsan Khodarahmi
A: 

If you're using smartgwt make sure firebug or similar is disabled. That will really slow down your browser in dev mode.

And as far as NetBeans is concerned there really is a plugin for GWT called GWT4NB. But the IDE is not your problem :)

Bogdan
Ehsan Khodarahmi