In this video, Tomáš will demonstrate techniques for improving Jetpack Compose app performance through measurement, debugging, and strategic optimization.
You will gain insights into the effective use of Macrobenchmarks in Compose to understand startup and runtime performance. Additionally, you'll explore how tracing can provide deeper insights into the behavior of your composables. You will also learn to debug stability issues using the layout inspector and composition debugger.
Lastly, we will share techniques to overcome performance challenges, ensuring a smoother app experience.
Chapters:
00:00 – Introduction
00:10 – R8 and baseline profiles effects
01:17 – Measure → Debug → Improve
01:51 – Measure with Jetpack Macrobenchmark
03:53 – StartupMode explanation
05:02 – CompilationMode explanation
06:00 – Measure app startup and report fully drawn state
08:47 – Measure frame timing
09:55 – Debug with system tracing
12:46 – Add more information to system tracing
16:38 – Measure recompositions
18:02 – Layout Inspector and Composition Debugger
20:10 – Update Jetpack Compose!
20:30 – Generate a baseline profile
20:32 – Defer phases when frequently changing state
24:04 – Use BoxWithConstraints only when needed
24:48 – remember{} only heavy operations
25:26 – Load heavy images asynchronously
26:13 – Split heavy frames
27:13 – Outro
Resources:
Compose Performance → [ Ссылка ]
Macrobenchmark → [ Ссылка ]
Catch more videos → [ Ссылка ]
Subscribe to Android Developers → [ Ссылка ]
#Featured #Android #JetpackCompose
Ещё видео!