~/talk

Enhancing Jetpack Compose App Performance:Tools, Strategies and Optimizations

Talkat Droidcon London 2023 · 2023-10-26..10-27· [web-performance]
slides:none on file

Use Jetpack Macrobenchmark and Perfetto-backed composition tracing to measure real user-facing metrics: startup and frame timing, trace-section durations and counts. Enabling R8 yields about 11% improvement vs defaults and generating custom baseline profiles can reach a 27% difference; stale profiles cut JIT vs none and updated profiles reduce JIT by ~8x from ~500ms. Composition tracing plus trace-section metrics surfaces hot spots (example: 360 recompositions during a scroll). Migrate heavy modifier code (moving to modifier.note >80% wins in some cases), defer compositing with drawBehind, and load big images asynchronously.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 1:29Measuring performance first
  3. 3:58Using Jetpack Microbenchmark
  4. 13:11Debugging with system tracing
  5. 24:34Updating Compose and baseline profiles
  6. 26:23Deferring state changes
  7. 28:49Avoiding BoxWithConstraints overhead
  8. 31:21Migrating custom modifiers
  9. 32:05Heavy operations and images
  10. 33:54Splitting heavy frames
~/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.