~/talk

Optimising UI in Jetpack Compose

Talkat Android Worldwide October 2023 · on Friday, 2023-10-20· [android, web-performance]
links:none on file
slides:none on file

Shows a real bug: an auto-resize Text that keeps reducing font size until it loops into continuous recomposition, and fixes by breaking UI into smaller composables so only the follow button or post list recomposes. Demonstrates use of remember(key=...) so cached values don’t reset, uses launchEffect/disposableEffect (with a 500 ms debounce and cancellable jobs) to manage side effects, and inspects counts with Layout Inspector and a Compose compiler metrics HTML report run in release to find skipable vs restartable composables.

AI-written summary · about

  1. 0:00Jetpack Compose UI optimization intro
  2. 1:14Composable functions
  3. 4:49Composer and recomposition
  4. 11:20Fixing recomposition loops
  5. 14:12Breaking UI into composables
  6. 17:26State hoisting best practices
  7. 21:01Side effects in Compose
  8. 26:38Avoid recompositions with remember
  9. 33:28Stable state for performance
  10. 38:39Measure Compose performance
  11. 44:25Q&A
~/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.