Saturday, June 23, 2012

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

Thanks. I tried it.

Strangely only soycReport/compile-report/CompilerMetrics-0-index.html is generated. For all the other browsers their files are missing. When I open soycReport/compile-report/index.html and click on one of the 'Compiler Metrics' links only the first (Safari) is functional. The rest of the links is not working since the following files are missing:

CompilerMetrics-1-index.html
CompilerMetrics-2-index.html
CompilerMetrics-3-index.html
CompilerMetrics-4-index.html
CompilerMetrics-5-index.html

Why aren't they generated?

Thanks,
Carsten



On Thursday, June 21, 2012 11:15:43 PM UTC+2, Paul Stockley wrote:
Story of your compile. Do a google search.

On Thursday, June 21, 2012 4:59:09 PM UTC-4, Carsten wrote:
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/-/fTHgTdfboxUJ.
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