~/talk

How to Improve App Startup Time

TalkinJapaneseat DroidKaigi 2021 · 2021-10-19..10-21· [web-performance]
name:haru067
links:none on file
slides:none on file

How to improve Android app startup time by measuring on release builds and focusing first on cold start. Use Jetpack Macrobenchmark with logcat display-time and ActivityReport logs, capture CPU traces (startMethodTracing or sampling) to find costly calls (e.g., expensive Log.d), then prioritize fixes by time saved versus cost and apply caching, parallelism, or lazy initialization; verify improvements with Firebase Performance dashboards and periodic checks.

AI-written summary · about

  1. 0:00First frame
  2. 0:51What happens during app startup
  3. 1:26Startup patterns in Android Vitals
  4. 3:10Why measure it?
  5. 3:36Why you shouldn’t rely on intuition
  6. 4:43How to measure it
  7. 9:30How to time it
  8. 11:55When executing from code
  9. 14:47Flame Chart use cases
  10. 16:55Patterns that don’t reproduce locally
  11. 19:07Why monitoring is necessary?
  12. 19:53Common mistakes
  13. 20:20How to monitor
  14. 21:58Case study from an app
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.