Pepperfry karntrehan Mar 28, 2023

Enhancing Our Android App's Launch Performance

Article Summary

Pepperfry's Android app launches 130,000+ times daily. Every millisecond of delay risks losing customers at the door.

The Pepperfry engineering team tackled app launch performance head-on, implementing strategic optimizations across splash screens, caching, API architecture, and library initialization. The result? A 40% improvement in homepage render time.

Key Takeaways

Critical Insight

Four targeted optimizations delivered a 40% faster launch experience and reduced memory footprint for 130,000+ daily users.

The team's next move involves Jetpack security-crypto to protect cached data, but their approach to dependency management might be the real game-changer.

About This Article

Problem

Pepperfry's Android app showed blank screens when starting up on older, slower devices. This made a bad first impression when users tapped the launcher icon.

Solution

The team added a SplashTheme with the splash screen as a background image in the manifest. After the binaries loaded, MainActivity's onCreate method switched to the normal AppTheme.

Impact

The splash screen now appears instantly when users tap the launcher icon. This removed the blank screen delay that had frustrated users on older devices.