Make your composition pause
summary
Compose runtime adds pausable composition in Compose 1.10: compiler-generated suspension points let the runtime slice initial composition into pause/resume chunks so expensive lazy items run across frames instead of blocking one. Measurements show composition costs ~70% of lazy item time, so splitting it cuts jank during scroll; API surfaces via SubcomposeLayout prefetch and CreatePausePrecomposition, works with Kotlin 2.2 defaults and already reduces main-thread frame overruns in benchmarks.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 2:10Compose performance challenges
- 9:43Deferred content experiments
- 13:37Composition two-phase flow
- 16:25Restartable and skippable functions
- 20:40From restartable to possible composition
- 23:09Demo: Possible composition in SubcomposeLayout
- 27:23Future optimizations
related talks
27mMake your composition pause
40mThe Compose Runtime, Demystified
37mPerformance in Compose:Lessons learned from Lazy layouts
41mDemystifying the Compose Runtime & Compiler
40mJetpack Compose Mechanisms
21mPerformance best practices for Jetpack Compose
38mJetPack Compose Performance Tips & Tricks
40mBoosting Compose UI from Sluggish to Snappy
