~/talk

Understanding Recomposition Performance Pitfalls

Talkat droidcon London 2022 · 2022-10-27..10-28· [android, frontend-architecture]
github:jossiwolf
slides:none on file

Explains how recomposition works (snapshot observers record state reads, recomposer observes writes, composition restarts) and shows a practical profiler: composition tracing highlights frame overruns and which composables ran. Recommends deferring or moving state reads into layout/draw or deeper children, using lambdas to avoid gratuitous captures, using derivedStateOf (+ mutation policy) to collapse noisy updates, and checking compiler outputs like classes.txt / composables.txt to find unstable types or apply @Immutable/@Stable annotations.

AI-written summary · about

  1. 0:00Introduction to recomposition
  2. 2:59How recomposition works
  3. 7:56Practical optimization tips
  4. 13:11Derived state optimization
  5. 15:57Reducing state scope
  6. 18:27Understanding stability
  7. 23:51Stability best practices
  8. 25:37Lambdas and performance
  9. 31:00When to optimize
  10. 32:43Q&A session
~/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.