-1

I've heard ProGuard's Jar shrinker affects the performance of you application. Is this true? And if so just how much slower does the Jar go shrinked compared to unshrinked?

2
  • 2
    Where have you heard that it slows down your application (please provide a link). A smaller jar normally leads to increased performance as there is less to load. And decompressing can be faster than loading a file.
    – Uwe Plonus
    Jun 17, 2013 at 9:32
  • 2
    I'm voting to close this question as off-topic because it is asking about the guessing of inner functionality of third party products.
    – user40980
    Jun 7, 2015 at 3:46

1 Answer 1

4

Actually, "shrinking" can only make an application load faster. Once loaded, there should be little or no difference in speed, though memory consumption can decrease.

Basically, the shrinker removes unused code, which reduces the amount of class-loading work the JVM has to do and the amount of memory taken up by that code.

2
  • "Basically, the shrinker removes unused code, which reduces the amount of class-loading work the JVM has to do". But no class will be loaded from the unused code, so how come this statement is true. Oct 2, 2017 at 9:59
  • 1
    @SanjeevKumarDangi: I meant cases where unused parts of a class are removed, i.e. methods that are not called anywhere in the application. That makes the class smaller and thus less work for the classloader. Oct 2, 2017 at 10:09

Not the answer you're looking for? Browse other questions tagged or ask your own question.