I followed the following instructions to start a brand new project in eclipse http://code.google.com/webtoolkit/usingeclipse.html
Why is debug mode so slow? The default new project has a textbox and a button created in GWT. But they take seconds to show up in debug mode. This is a brand new project why is it going so slow in gwt hosted mode?
Edit: To clarify the documentation clearly says that hosted mode does not conve开发者_运维问答rt the Java to javascript.
It takes some time to compile your application the first time. It's development mode so you didn't have to compile yourself before deploying, but it has to in order to display it. After the first time, it usually caches most of your class data and then it will be much faster.
GWT uses a mix of JavaScript and Java (bytecode) in it's Development mode.
See this for more info: http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html
Development mode uses a special engine to run your app as a mix of both Java bytecode and native JavaScript.
精彩评论