Native GWT Compiler

61 views
Skip to first unread message

Rauf Issa

unread,
Oct 8, 2008, 5:36:28 PM10/8/08
to Google Web Toolkit
Any plans to write a native GWT Compiler like jikes for java? I know
there are plans to improve GWT compiler performance in the upcoming
1.6 release of GWT by multi-threading but I am not sure that will make
enough difference. A native compiler like jikes would be better and
much faster.

Our product, JobServer (job scheduling engine) uses GWT for its GUI
SDK and we compile GWT components on the fly the first time the GWT is
used. This frees the developer from doing the GWT compiler if they do
not want to. This works very well but the initial GWT compiling of the
GWT UI components can take minutes sometimes and is annoying. I would
really like this to be more like compiling JSP pages for example.

Anyway I can only hope that GWT compiling gets faster (right now it is
getting slower with all the advanced optimizations done in GWT 1.5 :)

Rauf Issa
http://www.grandlogic.com
"JobServer - The Most Comprehensive Java Job Scheduling Platform"

Sumit Chandel

unread,
Oct 13, 2008, 2:08:35 PM10/13/08
to Google-We...@googlegroups.com
Hi Rauf,

There are currently no plans to rewrite the GWT compiler as a native compiler. There are plans to speedup compilation time with the current GWT compiler, however, and the team is in the know about long compilation times that some developers have been experiencing when moving their projects form 1.4.x to 1.5.

The new multi-threaded compiler is available in trunk if you're interested in checking it out to see if it helps speed up your application compile time.

From benchmarks we've run and what some developers have been reporting, the new multi-threaded compilation has been showing significant improvements in compilation speed, so you should be getting faster results for your own project as well.

Hope that helps,
-Sumit Chandel

Alex Epshteyn

unread,
Nov 12, 2008, 1:56:48 PM11/12/08
to Google Web Toolkit
Hi Sumit,

This multithreaded compiler sounds intriguing. Could you provide some
guidance about how to get it and use it?

Thanks,
Alex

On Oct 13, 1:08 pm, "Sumit Chandel" <sumitchan...@google.com> wrote:
> Hi Rauf,
> There are currently no plans to rewrite the GWT compiler as a native
> compiler. There are plans to speedup compilation time with the current GWT
> compiler, however, and the team is in the know about long compilation times
> that some developers have been experiencing when moving their projects form
> 1.4.x to 1.5.
>
> The new multi-threaded compiler is available in trunk if you're interested
> in checking it out to see if it helps speed up your application compile
> time.
>
> From benchmarks we've run and what some developers have been reporting, the
> new multi-threaded compilation has been showing significant improvements in
> compilation speed, so you should be getting faster results for your own
> project as well.
>
> Hope that helps,
> -Sumit Chandel
>

eric

unread,
Nov 12, 2008, 2:20:04 PM11/12/08
to Google-We...@googlegroups.com
get it : "The new multi-threaded compiler is available in trunk if
you're interested"

use it : like the google web toolkit .

regards .

Alex Epshteyn

unread,
Nov 17, 2008, 2:43:51 PM11/17/08
to Google Web Toolkit
I interpreted "available in trunk" to mean that it's a separate
version of the compiler in the trunk. Has it replaced the single-
threaded compiler and can just be built and used as usual?

Alex

On Nov 12, 2:20 pm, eric <ponthiaux.e...@gmail.com> wrote:
> get it : "The new multi-threaded compiler is available in trunk if
> you're interested"
>
> use it : like the google web toolkit .
>
> regards .
>
> Le mercredi 12 novembre 2008 à 10:56 -0800, Alex Epshteyn a écrit :
>
> > Hi Sumit,
>
> > Thismultithreadedcompiler sounds intriguing.  Could you provide some

Dobes

unread,
Nov 24, 2008, 7:29:13 AM11/24/08
to Google Web Toolkit
I checked out the trunk and I'm running the compiler from it, but I'm
not seeing any performance boost and only one CPU core is being used.
Is there a command-line switch to turn on multiple threads?


On Nov 12, 10:56 am, Alex Epshteyn <alexander.epsht...@gmail.com>
wrote:

Alex Epshteyn

unread,
Dec 10, 2008, 2:50:22 AM12/10/08
to Google Web Toolkit
Does anyone know the answer to this question asked by Dobes:

> I checked out the trunk and I'm running thecompilerfrom it, but I'm
> not seeing any performance boost and only one CPU core is being used.
> Is there a command-line switch to turn on multiple threads?

That's why I was reluctant spending at least an hour trying this
myself - I didn't believe it would actually be enabled by default.


On Nov 24, 7:29 am, Dobes <dob...@gmail.com> wrote:
> I checked out the trunk and I'm running thecompilerfrom it, but I'm
> not seeing any performance boost and only one CPU core is being used.
> Is there a command-line switch to turn on multiple threads?
>
> On Nov 12, 10:56 am, Alex Epshteyn <alexander.epsht...@gmail.com>
> wrote:
>
> > Hi Sumit,
>
> > This multithreadedcompilersounds intriguing.  Could you provide some
> > guidance about how to get it and use it?
>
> > Thanks,
> > Alex
>
> > On Oct 13, 1:08 pm, "Sumit Chandel" <sumitchan...@google.com> wrote:> Hi Rauf,
> > > There are currently no plans to rewrite the GWTcompileras a native
> > >compiler. There are plans to speedup compilation time with the current GWT
> > >compiler, however, and the team is in the know about long compilation times
> > > that some developers have been experiencing when moving their projects form
> > > 1.4.x to 1.5.
>
> > > The new multi-threadedcompileris available in trunk if you're interested
> > > in checking it out to see if it helps speed up your application compile
> > > time.
>
> > > From benchmarks we've run and what some developers have been reporting, the
> > > new multi-threaded compilation has been showing significant improvements in
> > > compilation speed, so you should be getting faster results for your own
> > > project as well.
>
> > > Hope that helps,
> > > -Sumit Chandel
>
> > > On Wed, Oct 8, 2008 at 2:36 PM, Rauf Issa <grandlo...@gmail.com> wrote:
>
> > > > Any plans to write a native GWTCompilerlike jikes for java? I know
> > > > there are plans to improve GWTcompilerperformance in the upcoming
> > > > 1.6 release of GWT by multi-threading but I am not sure that will make
> > > > enough difference. A nativecompilerlike jikes would be better and
> > > > much faster.
>
> > > > Our product, JobServer (job scheduling engine) uses GWT for its GUI
> > > > SDK and we compile GWT components on the fly the first time the GWT is
> > > > used. This frees the developer from doing the GWTcompilerif they do

Alex Epshteyn

unread,
Dec 10, 2008, 2:51:41 AM12/10/08
to Google Web Toolkit
(Just changing the title of this thread to match actual discussion
subject).

On Dec 10, 2:50 am, Alex Epshteyn <alexander.epsht...@gmail.com>

Sumit Chandel

unread,
Dec 11, 2008, 2:46:17 PM12/11/08
to Google-We...@googlegroups.com
Hi Alex, Dobes,

There is a flag that you need to pass in to have the compiler run in multi-threaded mode.

The flag is:

-localWorkers N, where N is some number greater than 1, depending on how many threads you want to use to compile your GWT application. Sorry for not mentioning this earlier.


Hope that helps,
-Sumit Chandel

Alex Epshteyn

unread,
Dec 11, 2008, 3:03:32 PM12/11/08
to Google-We...@googlegroups.com
Thanks, Sumit. Can this arg also be used for GWTShell?
Reply all
Reply to author
Forward
0 new messages