bitkit icon indicating copy to clipboard operation
bitkit copied to clipboard

Android startup time is slow

Open ovitrif opened this issue 1 year ago • 6 comments

This task is to coordinate the work to improve the startup time on Android, ie. opening the app when it's not in background.

In my case, with Pixel 7 Pro it's a random time that always exceeds 5 sec, and there are times when it hangs for as long as ± 16 sec.

Refs

See ….slack.com/archives/C01H106JRQB/p1718628911888799

ovitrif avatar Jun 25 '24 12:06 ovitrif

Tested whether if the fork of react-native-keychain might have slowed down the startup time and concluded it didn't in any significant way, with only 1-2 seconds diff in startup speed comparing the original library on the latest version with our fork.

ovitrif avatar Jun 25 '24 12:06 ovitrif

I watched the adb logs in Android Studio when building & running the debug app from it, there is literally a lot of time (4-10s) between the first log entry mentioning "loading native bindings" and the last one, all different libs with their different bindings. This led me to investigate common knowledge on the speed of loading native bindings in the JVM, an investigation which concludes that most of the performance hit might be rooted in this:

ovitrif avatar Jun 25 '24 12:06 ovitrif

@pwltr I assigned this to you based on my understanding from yesterday's sync call. If you're not working on it feel free to reassign to me 👍🏻

ovitrif avatar Jul 11 '24 06:07 ovitrif

I think now we can close this ticket. can be reopen later if needed.

JeanlChristophe avatar Sep 03 '24 09:09 JeanlChristophe

We can probably have this in the backlog but it definitely needs to be improved.

pwltr avatar Sep 03 '24 14:09 pwltr

Waiting for upstream fix in react-native-keychain.

pwltr avatar Oct 21 '24 09:10 pwltr

Launch time has been is very much improved by now, on a Pixel 6 the average TTFP is 2.8s. Could certainly be improved still but good enough to close here I think.

pwltr avatar Feb 28 '25 17:02 pwltr