Performance in a Kotlin world
summary
Shows concrete diagnostics and fixes: uses the Android Studio CPU profiler (trace vs sample, flame charts, threads, energy/memory/network panes) to find a bootstrap JSON parse that is bootstrap JSON blocking onCreate and Kotlin eager list operators that allocate heavily; shifts work to background, precomputes timezone/truncate work, and implements a lightweight thunk to avoid allocations to cut main‑thread time. Also demonstrates the Jetpack Benchmarking setup (non‑debug builds, measureRepeated, k‑means clustering) and reports wins like reducing ~30ms first paint toward ~1–2ms.
AI-written summary · about
chapters (5)
- 0:00Start
- 10:27Bug: Slow startup
- 22:12Bug: Schedule slow
- 35:00Fully optimized code is often
- 38:31Enough slide tips








