The GWT compiler is supposed to remove all unused code. If you believe that there's code in there that is unused, or can be removed, I would recommend filing a bug. Hopefully a GWT developer would be able to provide more information about this particular question.
On Sun, Apr 26, 2009 at 5:03 PM, zbo <[email protected]> wrote: > > Hello, > > I am working on reducing the compiled js size of a relatively > complex GWT application. I've been looking at the detailed output of > the compile process, and find quite a few blocks of code that seem to > be included no matter what. To test things and get a better > understanding of the GWT compile process, I build a trivial GWT app: > > onModuleLoad() { > RootPanel.get().add(new Label("placeholder"); > } > > Detailed output of this app was approximately 105k in size, and > filled with code I would expect (management of GWTEvents, onLoad > methods, String handling, etc) but also a lot of code that I wouldn't > expect (Hashmap, HashSet, AbstractSet, Set, Collections, etc.) My > question - is this entirely necessary, and if not, how do I avoid > having all of this code included a final compile of a real app? > > -Z > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. 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 -~----------~----~----~----~------~----~------~--~---
