Deferred code generation

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Deferred code generation

Postby jominor » Sun Jun 24, 2007 12:17 pm

My company has purchased GWT Designer and it is awesome. It has truly saved us considerable time and crafting a front-end that has seemed to impress our customers.

However, for a fairly complex page, it gets slower and slower as each change using the gui tool has to sync with the code. Is there any way to "defer" the code sync until a series of changes have made and then batch the code changes.

For a complex screen with many panels and widgets, a simply label changes can take 6-10 secs on a dual core machine with 4 gigs of ram.
jominor
 
Posts: 6
Joined: Fri Jun 15, 2007 4:19 pm

Re: Deferred code generation

Postby Eric Clayberg » Sun Jun 24, 2007 3:15 pm

jominor wrote:However, for a fairly complex page, it gets slower and slower as each change using the gui tool has to sync with the code. Is there any way to "defer" the code sync until a series of changes have made and then batch the code changes.

No. Note that Designer does not regenerate the full source with each edit. It only changes the source that is actually affected. Disabling that code update would cause the source to be immediately out of sync with its associated AST. It would also effectively disable undo/redo support.

jominor wrote:For a complex screen with many panels and widgets, a simply label changes can take 6-10 secs on a dual core machine with 4 gigs of ram.

Can you send us a test case? We have some very complex examples, and this does not happen on our end.

Have you considered refactoring the screen so that each panel is represented by a Composite? Not only would that make the indivisual pieces more reusable, it should reduce the size of your source file considerably.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Deferred code generation

Postby jominor » Sun Jun 24, 2007 7:20 pm

Eric Clayberg wrote:
jominor wrote:However, for a fairly complex page, it gets slower and slower as each change using the gui tool has to sync with the code. Is there any way to "defer" the code sync until a series of changes have made and then batch the code changes.

No. Note that Designer does not regenerate the full source with each edit. It only changes the source that is actually affected. Disabling that code update would cause the source to be immediately out of sync with its associated AST. It would also effectively disable undo/redo support.

jominor wrote:For a complex screen with many panels and widgets, a simply label changes can take 6-10 secs on a dual core machine with 4 gigs of ram.

Can you send us a test case? We have some very complex examples, and this does not happen on our end.

Have you considered refactoring the screen so that each panel is represented by a Composite? Not only would that make the indivisual pieces more reusable, it should reduce the size of your source file considerably.


I'll send a test case. I figured (read assumed) that only the gui changed affected a section of code, which was why it was only taking as long as it did.

I use Idea primarily, and haven't come up with a scheme that allows both Eclipse and Idea to share resources in manner that works well, so currently, I've used Eclipse just for the front-end.

Basically, I have a single project, the image viewer actually. I create a screen, then copy the code into my idea project. I'll assemble one of the screens and send it in.

I take it that I should send it to the support number?
jominor
 
Posts: 6
Joined: Fri Jun 15, 2007 4:19 pm

Re: Deferred code generation

Postby Eric Clayberg » Mon Jun 25, 2007 5:34 am

jominor wrote:I take it that I should send it to the support number?

Yes. Small examples can be posted here. Large examples should be sent to support via e-mail.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests