ShareChat Feb 21, 2023

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

Critical Insight

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.

The team's approach to shared RecyclerView pools and viewholder optimization reveals a pattern most apps miss.

About This Article

Problem

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.

Solution

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.

Impact

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.

Related Articles