Investigate MAIN startup performance on low-end devices (G5 preferred)
Let's take a profile and find any low-hanging fruit. File follow-ups at the top of the backlog for any issues found.
We'd prefer a simpleperf profile but, if that's not possible, the Android Profiler will do.
┆Issue is synchronized with this Jira Task
Profile: Dowload and open in browser
TLDR: Didn't find anything significant on the profile but saw The MigratingFenixApplication/Activity take quite a bit time every time we do a cold startup.
Things noted:
-
setupTheme() - > takes around 40-60 milliseconds to access sharedpref
-
~~setupCrashReporting() -> can be moved to an IO coroutine~~
-
setupPush() inside
FenixApplication-> This could move to a coroutine?
FNPRMS with aurora build (2020.07.07) on s7
- Moved setup setupTheme() and setupCrashReporting() to IO coroutine
| Master | with setupTheme() in IO coroutine |
With setupCrashReporting() in IO coroutine |
With setupCrashReporting() and setupTheme() in IO coroutine |
|---|---|---|---|
| 1.0572692307692309 | 1.0413478260869564 | 1.0302592592592592 | 1.0052352941176472 |
Note: The master seem to land between 1.02 - 1.08.. and the changes(last column) went as low as 0.99 seconds
Closing: we're revisiting startup holistically.