~/talk

What does Recomposition mean to your app

Talkat Chicago Roboto 2022 · on Wednesday, 2022-07-27· [android]
slides:none on file

Explains what “recompose” actually does: compiler/runtime use a slot table, composer and change list so functions rerun only when tracked inputs change; shows concrete costs of full recomposition and the surprising metric that an example app has 76 restartable and 64 skippable composables (12 that always restart). Demonstrates practical tools—compose compiler metrics, recompose highlighter, a logging modifier and Layout Inspector (Electric Eel)—and provides code patterns (keys, defer state reads, derivedStateOf) and whether each approach reduces wasted work.

AI-written summary · about

  1. 0:00Start
  2. 2:26Jetpack Compose paradigm
  3. 11:32Android Lifecycle & Compose
  4. 12:28State Snapshot System
  5. 25:43Recomposition in SlotTable: example 1
  6. 29:19Stable type contract rules
  7. 29:47Stable property types
  8. 30:59Inferring Class stability
  9. 31:21Exceptions
  10. 32:39Compose Compiler Metrics
  11. 34:42Recompose Highlighter
  12. 36:23Logging Modifier
  13. 37:30Recomposition counter in Android Studio EE
  14. 38:52Break down composable functions
  15. 39:48Use the key composable
  16. 41:11Read the state value at the lowest composable function
  17. 42:27Use modifier lambdas
  18. 44:31Tips worth repeating
  19. 47:20Resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.