Thursday, June 21, 2012

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

i would not rely on that. there are tools which are better suited for
this. my first choice would be intellij idea because it can also detect
calls to methods from those native js gwt thingies that other tools
don't understand. they would detect methods called only from native js
as unused.

and yes you can check: compile in pretty mode. the code won't be
obfuscated and you can search for the class name and specific methods.

Am 21.06.2012 22:17, schrieb Carsten:
> 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/-/y--NLNmLF8wJ.
> 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.


--

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
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