Swiggy Nov 14, 2023

Optimising Scrolling Performance with Litho

Article Summary

Swiggy's Android team was hitting scroll performance walls with traditional RecyclerViews. Their solution? Facebook's Litho framework, which delivered massive performance gains.

Sarabjeet Singh from Swiggy's mobile team shares a detailed technical guide on implementing Litho, a declarative UI framework that uses FlexBox layouts and asynchronous rendering. This is a practical walkthrough with real code examples.

Key Takeaways

Critical Insight

Swiggy achieved significant scroll performance improvements by replacing traditional Android views with Litho's declarative component system and background layout calculations.

The article includes a complete code walkthrough for building GroupSections, plus the author promises a follow-up on implementing missing components like ViewPagers and handling animations.

Recent from Swiggy

Related Articles