user782220
user782220

Reputation: 11187

GWT debug mode is slow on brand new eclipse project

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 convert the Java to javascript.

Upvotes: 0

Views: 1050

Answers (2)

Jack
Jack

Reputation: 1240

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.

Upvotes: 0

citizen conn
citizen conn

Reputation: 15390

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.

Upvotes: 1

Related Questions