~/talk

Optimizing Render Performance of Jetpack Compose

Talkat droidcon New York 2022 · 2022-09-01..09-02· [android, web-performance]
links:none on file
slides:none on file

Measured render times show 1400 ms vs 345 ms (Compose vs XML) on low-end phones; switching to release with R8 cuts Compose by ~65% to ~540 ms, and baseline JIT profiles shave another ~15%. The concrete playbook: use R8/minified release builds when measuring and shipping, avoid many Compose-in-XML wrappers, pre-initialize Compose on splash to pay the singleton cost early (observed ~330 ms warmup), make view state stable or hoist state into smaller composables, and install baseline profiles with profile installer.

AI-written summary · about

  1. 0:00Introduction and background
  2. 4:24Performance gap discovery
  3. 10:31Debug vs release builds
  4. 15:07First composition initialization
  5. 22:56Stable parameters and recomposition
  6. 25:24Compose library benefits and trade-offs
  7. 32:47JIT compilation and baseline profiles
  8. 34:12Compose adoption benefits
~/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.