Thanks Chris and Greg!

@Greg A GWT app is (when served to the client browser) "just" plain
optimized and obfuscated javascript. Best practice is to gzip these
files. There is no such thing as a "runtime". GWT does a *very* good
job in optimizing the javascript code. In our app the (gziped) js
files are about 200k. These files are also cached (forever) client
side. My first *very simple* pivot app is about 10x larger. I do not
say this is a real problem, i am just comparing

@Chris Yes I already tried to proguard the hellojava app. No success
so far. So that is why i asked. And yes, the BeanAdapter is mainly
giving the problems. I also run in LocalVariableTypeTable attribute
problems ... I wonder if it is worth the effort :)

Ronald

2011/1/24 Greg Brown <[email protected]>:
> Yes, reflection occurs primarily in BeanAdapter and BXMLSerializer.
> On Jan 24, 2011, at 8:32 AM, Chris Bartlett wrote:
>
> Ronald,
>
> This is something that I have on my 'to investigate' list, but have not
> required it yet. It has been a while since I used ProGuard too, so I have
> probably forgotten everything I ever knew!
> Have you attempted to use it for shrinking yet, or were you just wondering
> if there is a profile available for Pivot?
> I think I am right in saying that all reflection in Pivot occurs through the
> BeanAdapter class, but perhaps Greg can confirm?
> You will need to be careful with the WTK & Terra jars as they are commonly
> accessed with BeanAdapter.  If you don't intend to use BXML to specify your
> GUI, then more of WTK could be shrunk, but the skins would still need the
> names of their styles (bean properties) to remain unchanged.
> BeanAdapter is used in a number of places, some of which are mentioned at
> the beginning of this email.
>  http://apache-pivot-developers.417237.n3.nabble.com/Some-thoughts-on-BeanAdapter-tp2309139p2309139.html
> Chris
> On 24 January 2011 19:46, Ronald Muller <[email protected]> wrote:
>>
>> Hallo,
>>
>> Has someone succeeded using ProGuard to reduce the size of pivot
>> applets? If so, are you willing to share the configuration?
>>
>> Regards,
>>
>> Ronald
>
>
>

Reply via email to