Enhancing Jetpack Compose app performance

Subscribers:
1,350,000
Published on ● Video Link: https://www.youtube.com/watch?v=Z96wfbID_Yc



Duration: 27:41
21,445 views
532


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 → https://goo.gle/488Z03b
Macrobenchmark → https://goo.gle/3K6w0hs

Catch more videos → https://goo.gle/Jetpack-Compose
Subscribe to Android Developers → https://goo.gle/AndroidDevs

#Featured #Android #JetpackCompose




Other Videos By Android Developers


2024-07-17Google Play PolicyBytes - Atualizações de Política de Julho de 2024 (Portuguese-Brazil)
2024-07-17Google Play PolicyBytes - 2024 年 7 月政策更新 (Mandarin)
2024-07-17Google Play PolicyBytes - 2024 年 7 月ポリシー アップデート(Japanese)
2024-05-06Live Google Pay integrations on Android: Google Pay on Android using Stripe's React Native SDK
2024-04-09Google Play PolicyBytes - Pembaruan Kebijakan April 2024
2024-04-09Google Play PolicyBytes - 2024 年 4 月ポリシー アップデート(Japanese)
2024-04-09Google Play PolicyBytes - Atualizações de Política de Abril de 2024 (Portuguese-Brazil)
2024-04-09Google Play PolicyBytes - 2024 年 4 月政策更新 (Mandarin)
2024-04-09Google Play PolicyBytes - 2024년 4월 정책 업데이트 (Korean)
2023-12-06Techniques to improve your Jetpack Compose app performance
2023-12-06Enhancing Jetpack Compose app performance
2023-12-05Safety: Play Integrity API #shorts
2023-12-05Monetization: User choice billing #shorts
2023-12-05Quality: Android vitals #shorts
2023-12-05Engagement: Deep links #shorts
2023-12-05Growth: Custom store listings #shorts
2023-11-30What's new in Android Studio Hedgehog
2023-11-29Now in Android: 96 - New APIs for adaptive layouts, Google Play updates, and more!
2023-11-29Live Google Pay integrations on Android: Payments on Android with Google Pay and PayPal Braintree
2023-11-29Spotify wins Google Play’s 2023 Best Multi-device App award
2023-11-28Notes from Google Play: Celebrating another year of partnership and innovation



Tags:
jetpack compose
jetpack compose tutorial
jetpack compose latest
jetpack compose updates
developer
developers
android developer
android developers
google developers
android
google
android latest
android updates
Tomáš Mlynarič