On Tue, Mar 24, 2009 at 11:01 PM, John Tamplin <[email protected]> wrote:

> On Tue, Mar 24, 2009 at 10:51 PM, Vitali Lovich <[email protected]> wrote:
>
>> Also, this happens on every launch regardless of whether or not code was
>> actually changed.
>>
>
> Right, currently hosted mode builds TypeOracle and other things from
> source, so it has to run all the source through JDT each time you start it.
>
But it also seems to recompile client libraries as well - I get warnings
about using deprecated constructs in my client jars.

5.161:  Request for module
13.379: Refreshing module from source

I found out why it was taking so much time after the compilation loaded to
actually get into my onModuleLoad.  I was accidentally assigning icons from
an ImageBundle into instance variables.

I had created this whole Singleton delay-loaded architecture to lazy load
the services & icons (and oppurtinistically load them in the background
using timers so that the user doesn't notice it but missed the ones in the
login screen during refactoring.


>
>
>> Sorry, my mistake.  Refreshing isn't actually slow.  But if it's doing a
>> bytecode compile, why is it even taking any time on the initial startup when
>> there was no source code change & the compiled classes haven't changed?
>> Shouldn't it notice this & not do anything?
>>
>
> It should not be recompiling any classes that haven't changed, but until
> very recently it always compiled the output of generators.  Amit checked in
> a patch in the past week to avoid the recompile if the generator produces
> the same output.  Eventually, we might build in a way for generators to
> specify their dependencies (or to automatically infer them) and not even run
> the generator if its dependencies have not changed, but right now that is
> not possible.

That might be why I noticed a performance improvement.


>
>
> --
> John A. Tamplin
> Software Engineer (GWT), Google
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to