Groupon Dec 17, 2015

Android's Multidex Slows Down App Startup

Article Summary

Michael Ma from Groupon discovered that enabling multidex increased their Android app startup time by 15% on pre-Lollipop devices. Here's how his team clawed that performance back.

When Android apps hit the 65k method limit, multidex is the standard solution. But this convenience comes with a hidden cost: significantly slower app launches on devices running KitKat and below. Groupon's engineering team documented their journey to identify and fix this performance regression.

Key Takeaways

Critical Insight

By identifying and relocating startup-critical classes to the main dex file, Groupon eliminated the 15% performance penalty and matched pre-multidex startup speeds.

The article includes a utility class method and build.gradle script that automate finding which classes are slowing down your app startup.

Recent from Groupon

Related Articles