Ben Weiss 

2.1K Followers
192 Following
343 Posts

droidcon London is around the corner. This time Rajesh Pai and I will share how you can make low effort and high impact app performance improvements to your app and how that helps drive user satisfaction and business results.

Looking forward to seeing you there.

Tomorrow we will show how to measure and improve app performance at #GoogleIO. Make sure to join in.
Come talk with us at the Dev Productivity booth after the Developer Keynote at #GoogleIO
Don't use Gson on Android. Use Kotlin Serialization instead. It relies on code generation instead of reflection. This helps avoid optimization related crashes and faster app performance.
https://github.com/google/gson?tab=readme-ov-file
https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/basic-serialization.md#basics
GitHub - google/gson: A Java serialization/deserialization library to convert Java Objects into JSON and back

A Java serialization/deserialization library to convert Java Objects into JSON and back - google/gson

GitHub

Benchmark 1.4.0 alpha is available and brings in a new feature “App Startup Insights”. It's a quick way to surface deeper issues that slow down app startup.

https://developer.android.com/jetpack/androidx/releases/benchmark#version_14_2

Benchmark  |  Jetpack  |  Android Developers

Android Developers
Data on ANR or memory pressure or specific crashes is hard to collect locally, but readily available on Google Play Vitals or Firebase Performance Monitoring.
Release testing allows for low noise observations, reproducible tests and access to trace files.

Focusing on performance is ultimately focusing on the user. Improved app performance has high impact on user satisfaction which in turn can lead to improved business results.

Focus on the user and all else follows.

To quickly move the needle in a highly impactful way, upgrade to AGP 8+, finally enable R8 full mode, use Baseline Profiles and Dex Layout Optimizations via Startup Profiles.

Unless these four key parts are done, focus on performance is likely not going to give you the biggest impact over effort.

When working on app performance it's sometimes hard to know where to get started and why you should focus on it. Here are the key takeaways from my Droidcon Berlin presentation.