holochain-apps / kando

Real-time KanBan Boards
MIT License
3 stars 2 forks source link

Improve startup time on android #8

Open mattyg opened 2 months ago

mattyg commented 2 months ago

The app is quite slow to start up on android - 10-15 seconds on my several year old budget phone.

Profile startup process to determine source(s) of delay and address.

mattyg commented 1 month ago

It does look like app installation is the majority of the startup time for initial run: ~12 seconds in this example running in an emulator:

2024-07-21 15:58:11.680  4286-4321  tauri_app_lib           org.holochain.kando                  D  [tauri_app_lib] Timer end: setup admin websocket - instant=Instant { tv_sec: 10565, tv_nsec: 161407656 }, duration=1.979593ms
2024-07-21 15:58:11.681  4286-4321  tauri_app_lib           org.holochain.kando                  D  [tauri_app_lib] Timer end: list apps - instant=Instant { tv_sec: 10565, tv_nsec: 162288148 }, duration=865.554µs
2024-07-21 15:58:23.657  4286-4324  tauri_app_lib           org.holochain.kando                  D  [tauri_app_lib] Timer end: install app - instant=Instant { tv_sec: 10577, tv_nsec: 138918543 }, duration=11.976603465s
2024-07-21 15:58:23.664  4286-4324  tauri_app_lib           org.holochain.kando                  D  [tauri_app_lib] Timer end: build holochain window - instant=Instant { tv_sec: 10577, tv_nsec: 145099997 }, duration=6.144144ms