Also, assign the result to GWT.create to a singleton, preferably lazy loaded like
class MyClass { private static class Service { MyServiceAsync impl = GWT.create(MyService.class); } } You'll see significant performance improvements in hosted mode - I haven't tested web-mode, but I suspect it's also faster (& smaller). In hosted mode it's particularly noticeable because you won't try to instantiate all your services at once on program startup (each instantiation is very expensive, at least in hosted mode), but in steps. On Thu, Apr 23, 2009 at 1:07 PM, JoeB <joe.berm...@gmail.com> wrote: > > Thanks for all the explanations! I think I get it now. :-) > > -- Joe > > > --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---