Am Freitag, 1. Juli 2011 14:47:36 UTC+2 schrieb David Chandler (Google):
Hi Andreas,
This is exactly why using the Command pattern a la gwt-dispatch is recommended :-)
But a Command pattern gets really annoying if you start using code splitting. GWT will load every serializer for every command (generic command interface) on startup because the generated RPC service has a reference to them.
Currently we load about 500-600kb of serializers we do not need on app startup just because of the amount of commands we have. Only solution so far would be to have multiple dispatch services each with a more specific execute method (one command interface per "application module" that has been code splitted). If you then want client side caching you would have similar issues as Andreas.
-- J.