ShareChat addresses Jank issues to increase feed scrolling by 60% | Developer stories | Android Developers
Article Summary
ShareChat cut janky frames by 75% and boosted feed scrolling by 60%. Here's how they debugged their way to a 4.3-star rating.
ShareChat, India's leading social media platform with 180M+ monthly users, partnered with Google to tackle performance issues plaguing their Android app. The team systematically profiled and optimized everything from RecyclerView pools to thread management.
Key Takeaways
- Reduced slow frames by 45% and frozen frames by 30% on Play Store
- Migrated from RxJava to Coroutines, cutting 100+ threads
- Flattened layouts with ConstraintLayout and moved heavy tasks off UI thread
- Switched from Glide to Coil for better Jetpack Compose image loading
- Feed scrolling increased 60%, post consumption up 10%
Through profiling and targeted optimizations, ShareChat reduced janky frames from 10.72% to 3.98% per 10K frames, driving their Play Store rating from 4.0 to 4.3.
About This Article
ShareChat's RecyclerView was creating too many viewholders and making redundant requestLayout calls during bind operations. This slowed down the app for their 180M+ monthly active users.
ShareChat built a Shared RecyclerView Pool to reduce viewholder creation costs. They also refactored the code to capture values when viewholders were created instead of on every bind, which stopped unnecessary layout recalculations.
Janky frame rates per 10K frames dropped from 10.72% to 3.98%. Their Play Store rating went from 4.0 to 4.3 stars.