~/talk

Optimizing Render Performance of Jetpack Compose

Talkat Android Worldwide October 2021 · on Thursday, 2021-10-28· [android, web-performance]
links:none on file
slides:none on file

Measured initial render times show pure XML at 345 ms XML versus a debug Compose build at 1,418 ms Compose debug; switching to release with R8 drops Compose to about 574 ms Compose with R8, and adding profile installer cuts it to ~565 ms. Profiling uses Android Studio / perfetto.dev to find JIT hotspots; strategies that work are: convert whole screens (one Compose root) not many small ComposeViews, hoist heavy calculations into ViewModel or remember, use keys in LazyColumn, and precompile hot code. The team ships a full Compose app with acceptable low‑end performance.

AI-written summary · about

  1. 0:00Start
  2. 9:20Convert Sections of the Composable as Blocks
  3. 10:29Performance Guideline
  4. 13:40State in Composables
  5. 16:50The Remember Block
  6. 20:03Four Is Use State and Remember To Minimize the Calculation within Your Composables
  7. 21:20Lazy Columns
  8. 25:01Annotation Processing
  9. 28:15Android 7
  10. 32:00Profile Installer
  11. 32:13The Android Profiler Tool
  12. 33:37Guidelines for Faster Composable Renders
  13. 35:34Questions and Answers
  14. 38:12Does State Hoisting Improve Composed Performance
  15. 38:51State Hoisting
  16. 39:56Is It Possible To Share the Xml Layout and Compose
  17. 40:37Should You Use Compose or Xml
  18. 49:23Making Composable Previews
  19. 50:24Composable Preview
~/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.