What does Recomposition mean to your app?
summary
Explains exactly how recomposition runs: the slot table, composer and change list record diffs, the state snapshot system wakes a recomposer, and an applier batches layout and draw; shows a real compiler-metrics output example (e.g. 64 skippable vs 76 restartable → 12 unexpected restarts). Covers tools: compiler metrics (JSON), recompose highlighter and a logging modifier (noisy), and Android Studio Electric Eel’s recompose counter (works on Compose 1.2 alpha+3). Gives concrete fixes: break down composables, use keys, defer reads, derivedStateOf, val and immutable collections.
AI-written summary · about
chapters (10)
- 0:00Introduction to recomposition
- 1:18Jetpack Compose fundamentals
- 5:37Composition phases explained
- 14:57Slot table and applier
- 22:28What is recomposition
- 24:34Triggering recomposition
- 28:14Smart recomposition rules
- 32:13Debugging recomposition tools
- 37:54Practical optimization tips
- 47:26Summary and best practices
related talks
38mWhat does Recomposition mean to your app?
55mWhat does Recomposition mean to your app
36mUnderstanding Recomposition Performance Pitfalls
28mCompose at Scale: Stop Unnecessary Recomposition
45mMastering Recomposition: Optimizing State Changes for Efficient UI
41mDeep Dive into the Compose Compiler
34mCompose Performance: Hunting for unnecessary recompositions
42mCompose: Beyond Android development
