Multithreaded rendering on Android with Litho and Infer
Sep 26, 2017Peter O'Hearn, Sam Blackshear, Benjamin Jaeger, Jingbo Yang

Summary
This post details the migration of News Feed's Android UI to Litho for multithreaded rendering, enabling smoother scrolling and richer content. It highlights the challenges of ensuring thread safety in an existing codebase and the crucial role of Infer's new thread-safety analyzer in detecting and fixing concurrency bugs, which was essential for the successful implementation of background layout at scale.
More from the News Feed and Timeline Evolution trail
- Friend Bubbles: Enhancing Social Discovery on Facebook Reels
- A New Ranking Framework for Better Notification Quality on Instagram
- Inside Facebook’s video delivery system
- Improving Instagram notification management with machine learning and causal inference
- A linear programming approach for optimizing features in ML models