Android ProGuard: Most Aggressive Optimizations

后端 未结 3 1974
醉梦人生
醉梦人生 2021-01-29 22:38

Android\'s official proguard documentation shows two primary optimizations:

  • set minifyEnabled to true
  • use proguard-androi
3条回答
  •  梦谈多话
    2021-01-29 23:13

    In libminecraft 1.15.2 zero, the first Minecraft version to use the new libminecraft's advanced-technology whole-program optimization, I only used gson, inlining, and code optimizations. This is done to mitigate the potentially destabilizing effects of using full optimization.

    Now we had Minecraft 1.16.2 and ProGuard 7.0.0, I used full optimizations without any stability problems (I actually stacked ProGuard with Allatori, and still not run into stability problems, since Allatori does better control and data flow optimizations than ProGuard).

    I ran ProGuard three times in libminecraft 1.16.2 heavy. Once with 5 passes of code optimizations only, once with all non-code optimizations, and once with 2 passes of code optimizations only. Additionally, I used Allatori for the final pass of optimization since it performs very high-quality control and data flow optimizations.

提交回复
热议问题