Friday, March 4, 2016

Compiling only what is needed to run?

Hello,

I would like to know if it's possible to tell the compiler to not compile all sources provided but only the classes and methods that are actually used.

I already used another java to javascript transpiler that has a per-method dependency analyser from the initial entry point, that determines the set of methods that are really needed to run the application.
It worked and could drastically reduce the translated code size especially when using third-party java libraries (it's not rare we actually use just some parts of them). 

It seems GWT doesn't have this feature. Is it right or did I miss a compiler option?

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment