~/talk

Performance best practices for Jetpack Compose

Talkat Google I/O 2022 · 2022-05-11..05-12· [android]
links:none on file
slides:none on file

Advice for making Compose apps faster: always test in Release mode with R8 because debug disables optimizations; avoid expensive work during recomposition by using remember for sorting and supplying unique keys to LazyList; use derivedStateOf to collapse noisy state (e.g., show-button from firstVisibleIndex); defer reads into drawBehind to skip composition/layout; never perform backwards writes during composition; add baseline profiles via Macrobenchmark — jetsnack sees 22% faster startup, Google Maps 30%, Play Store 40% initial render.

AI-written summary · about

  1. 0:00Intro
  2. 0:55Configuration
  3. 7:14procrastination
  4. 11:36running backwards
  5. 15:25covering your bases
~/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.