JetPack Compose Performance Tips & Tricks
summary
Explains concrete fixes: use remember to avoid rerunning logic every frame, use derivedStateOf to collapse thresholds (only change when crossing 20 likes), give Lazy lists stable keys (IDs) to prevent full-list recomposition, defer state reads into layout or draw lambdas to skip composition work, enable R8 and baseline profiles for big performance wins, run the compose compiler metrics plugin and mark collections immutable or annotate/wrap models so composables become skippable.
AI-written summary · about
chapters (7)
- 0:00JetPack Compose intro
- 1:46Understanding Compose phases in depth
- 8:12Recomposition tips
- 13:15State reads optimization
- 16:50Baseline profiles & R8
- 17:11Stability & immutability
- 27:22Q&A
related talks
21mPerformance best practices for Jetpack Compose
24mJetpack Compose Performance Improvements Learned from Real Examples
39mJetpack Compose: Drawing without pain and recomposition
37mPerformance in Compose:Lessons learned from Lazy layouts
21mMore performance tips for Jetpack Compose
40mJetpack Compose Mechanisms
36mJetpack Compose: Drawing without pain and recomposition
42mJetpack Compose: Art of the State
