Very simple, minimize the usage of GWT.create(), this can be done by
using the following pattern for for example message resources:
Now when you use the interface in the following way:
This will ensure that the GWT.create is only executed once for that interface. For RPC classes you can do the same, suppose you have the PersonService interface and the async version of the interface PersonServiceAsync. Then also create a implemented version of the Async interface that will do the GWT.create for you:
In this way you will only have one GWT.create per RPC interface. This will really help improve the performance of making RPC calls (let alone the memory consumption). |
