Thursday, June 21, 2012

Re: How far does the optimizations of the GWT compiler go..?

Interesting. What means soyc?

On Thursday, June 21, 2012 10:41:54 PM UTC+2, Paul Stockley wrote:
Yes it will remove methods and classes that are not used. If you compile with the option -compileReport it will generate a soyc report that shows you all the code that is included in your project.

On Thursday, June 21, 2012 4:17:53 PM UTC-4, Carsten wrote:
Hi,

I was wondering how well the GWT compiler is able to remove unused parts? Can it even remove methods and fields from a class which are never used?

Example:

VeryComplexObject vco = null;

initVCO() {
...
};

If initVCO is never called from my code, will the GWT compiler remove the method initVCO(), the field vco, or even the VeryComplexObject class itself?

Can I somehow check what the GWT compiler removed and what not? Is there a log which lists removed parts?

Thanks,
Carsten

--
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/-/uLj8coL4aaQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment