More performance tips for Jetpack Compose
summary
Shows how to measure real gains with Macrobenchmark and the new Compose tracing, then fixes three common slow cases: avoid recomposition by deferring reads into lambda modifiers so layout reruns without rebuilding the composition tree, make parameters stable (use KotlinX ImmutableList or @Immutable/@Stable) so functions become skippable, and reduce churn with derivedStateOf versus remember-with-keys. Also previews Activity Compose 1.7 APIs reportDrawnWhen/reportDrawnAfter to call reportFullyDrawn reliably for startup benchmarks.
AI-written summary · about
chapters (6)
- 0:00Introduction to performance
- 1:17Using macrobenchmarks
- 3:45Deferring state reads
- 8:29Understanding stability
- 15:48Using derivedStateOf
- 18:27Improving app startup
related talks
21mPerformance best practices for Jetpack Compose
37mPerformance in Compose:Lessons learned from Lazy layouts
37mUsing Performance Management Tools: Firebase Performance Monitoring and Macrobenchm…
24mJetpack Compose Performance Improvements Learned from Real Examples
38mJetPack Compose Performance Tips & Tricks
40mBoosting Compose UI from Sluggish to Snappy
45mBoosting Compose UI from Sluggish to Snappy
32mFrom Debugging to Real-World Tuning: A Practical Guide to Compose Performance
