Hi Gal,

That's a good point - I'm actually using them in production (since we are at it, I might throw in
<set-property name="compiler.stackMode" value="strip"/>)

However I've found none of those to affect actual RPC payload size, though they most certainly reduce the compiled javascript size.

On 30/03/11 10:58, Gal Dolber wrote:
Another two optimizations on the compiler (the first one affects gwt-rpc):

| -XdisableClassMetadata EXPERIMENTAL: Disables some java.lang.Class methods (e.g. getName())|

||
|-XdisableCastChecking EXPERIMENTAL: Disables run-time checking of cast operations|


On Tue, Mar 29, 2011 at 12:53 PM, Paul Stockley <pstockl...@gmail.com <mailto:pstockl...@gmail.com>> wrote:

    I had the same issue with the command pattern. The problem is that
    all commands/results implement a common interface. The first time
    the service is created, it needs all the Marshalling code for all
    commands/results. The only way to avoid this is to have different
    services that define unique interfaces for their commands/results
    i.e. ServiceACommand interface and ServiceAResult interface.

    In the end I gave up on the command pattern and switched back to
    standard RPC with different services for each logical area.I added
    common error handling / version checking in a service facade.





--
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/




--
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.

--
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.

Reply via email to