reduce startup time with ProGuard?

113 views
Skip to first unread message

stephanos

unread,
Sep 2, 2014, 12:29:31 PM9/2/14
to google-a...@googlegroups.com

Hi there,

I was just wondering if it is worthwhile to reduce our Java app's dependency size by using ProGuard.

Did you observe an effect to the startup time with ProGuard?

Regards
Stephan

Vinny P

unread,
Sep 3, 2014, 12:55:51 AM9/3/14
to google-a...@googlegroups.com
On Tue, Sep 2, 2014 at 11:29 AM, stephanos <stephan...@gmail.com> wrote:
I was just wondering if it is worthwhile to reduce our Java app's dependency size by using ProGuard.

Did you observe an effect to the startup time with ProGuard?


Yes, depending on the application. 

Some of my larger applications (that included a ton of external libraries for speaking with other web services, frameworks, etc) benefited quite a bit since some unused code could be cut out. But certain applications that used very few libraries or were smaller in scale saw very minimal to no difference in startup time.
 
-----------------
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

stephanos

unread,
Sep 3, 2014, 3:10:21 AM9/3/14
to google-a...@googlegroups.com
Thanks for the reply! 

Can you be more specific? Our app is 132MB, I consider this rather large.
I want to know if I'm shaving of at least 2-3s off the startup time before I'd go down this path.

Nick

unread,
Sep 3, 2014, 6:08:02 PM9/3/14
to google-a...@googlegroups.com
What's your start up time now? If it's under 10 seconds, probably not. If it's just under 30, quite possibly. The only way to really know is to just try it

Rafael

unread,
Sep 3, 2014, 6:15:53 PM9/3/14
to google-appengine
I've done the proguard path. It was a pain to get it right.

the only way around java cold startup was to use manual scaling


On Wed, Sep 3, 2014 at 3:08 PM, Nick <naok...@gmail.com> wrote:
What's your start up time now? If it's under 10 seconds, probably not. If it's just under 30, quite possibly. The only way to really know is to just try it

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

stephanos

unread,
Sep 4, 2014, 3:48:03 AM9/4/14
to google-a...@googlegroups.com
It's ~18 seconds on good days, ~26 second on bad ones.

stephanos

unread,
Sep 4, 2014, 3:48:35 AM9/4/14
to google-a...@googlegroups.com
How much did it yield once you got it right? Roughly?

Vinny P

unread,
Sep 5, 2014, 4:06:21 PM9/5/14
to google-a...@googlegroups.com
On Thu, Sep 4, 2014 at 2:48 AM, stephanos <stephan...@gmail.com> wrote:
It's ~18 seconds on good days, ~26 second on bad ones.
 
 
ProGuard will probably save you a few seconds with the above quoted startup times (especially on the "bad" startup time). I would say it's worth your time to try ProGuard out, and see if it does anything to help you. 
Reply all
Reply to author
Forward
0 new messages