Another possibility would be to replace some classes with stubs (-> 
dependency injection) - only activating the functionality that is currently 
interesting. The rest doesn't need to be compiled. Of course it depends on 
the application's architecture, if this can be done easily or not.


On Tuesday, September 4, 2012 10:31:46 AM UTC+2, Thomas Broyer wrote:
>
>
>
> On Tuesday, September 4, 2012 9:04:05 AM UTC+2, Hilco Wijbenga wrote:
>>
>> On 3 September 2012 23:10, Niraj Salot <[email protected]> wrote: 
>> > 1) Will this help us in Improving the compilation time? 
>>
>> No. 
>>
>> > 2) IF we change only Module 2 and then compile Module Main, will GWT 
>> still 
>> > compile Module 1 as it is inherited by Module Main? 
>>
>> Yes. 
>>
>> > Please share your views on above scenario. We have even tried out GWT 
>> 2.5 
>> > option but no help in performance improvements. 
>>
>> You might want to check out code splitting (see [1]). I haven't tried 
>> it but it *might* be possible to break up your app into separately 
>> compiled modules. 
>>
>> What we really need is a linker that takes precompiled modules (each 
>> stored in, say, a JAR) and combines them into an application. I know 
>> this has been discussed but I am not aware of anyone actually working 
>> on it. Unless code splitting already allows for all this... 
>>
>> [1] 
>> https://developers.google.com/web-toolkit/doc/latest/DevGuideCodeSplitting 
>>
>
> No. Code Splitting is about generating a bunch of JS scripts instead of a 
> single one. The compilation process is still monolithic.
>
> What could possibly help is to precompile the modules into *.gwtar files, 
> but it's something that's supposed to only be used by GWT itself (you'll 
> find such gwtar files in the gwt-user.jar) AFAIK. At least it's not 
> designed to build "libraries", as the gwtar files depend on the version of 
> GWT that produced them (IIUC).
>
> No, really, 4-6 minutes is not that long given the size of the project, 
> depending on the machine (number of cores/processors, memory, disks, etc.) 
> and JVM tweaks (-Xmx, -Xms, etc.)
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/zXDkjxU8aGUJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to