~/talk

More performance tips for Jetpack Compose

Talkat Android Dev Summit 2022 · 2022-10-24..11-14· [android]
links:none on file
slides:none on file

Shows how to measure real gains with Macrobenchmark and the new Compose tracing, then fixes three common slow cases: avoid recomposition by deferring reads into lambda modifiers so layout reruns without rebuilding the composition tree, make parameters stable (use KotlinX ImmutableList or @Immutable/@Stable) so functions become skippable, and reduce churn with derivedStateOf versus remember-with-keys. Also previews Activity Compose 1.7 APIs reportDrawnWhen/reportDrawnAfter to call reportFullyDrawn reliably for startup benchmarks.

AI-written summary · about

  1. 0:00Introduction to performance
  2. 1:17Using macrobenchmarks
  3. 3:45Deferring state reads
  4. 8:29Understanding stability
  5. 15:48Using derivedStateOf
  6. 18:27Improving app startup
~/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.