markqvist / Sideband

LXMF client for Android, Linux and macOS allowing you to communicate with people or LXMF-compatible systems over Reticulum networks using LoRa, Packet Radio, WiFi, I2P, or anything else Reticulum supports.
Other
391 stars 27 forks source link

Quite slow (10-15) seconds loading time. #18

Closed CutePotatoDev closed 1 year ago

CutePotatoDev commented 1 year ago

Application tooks 10 to 15 seconds to load up. Shut down took shorter time but also not to much satisfying ammount.

Can guees its issue of app egine but on my phone and tablet moving acros app is also quite lagging.

markqvist commented 1 year ago

Can you give some info on what devices these are, and what Android version they are running on?

The first run of the app will usually be quite slow on older devices, since it needs to unpack the various resources and libraries for the first time. It should be noticably faster next time.

CutePotatoDev commented 1 year ago

Device 1 (Phone): Samsung Galaxy A50 (SM-A505FN/DS) Android 11 (One UI 3.1)

Device 2 (Tablet): Huawei MediaPad M5 Lite (BAH2-W19) Android 8.0.0 (EMUI 8.0.0) This one loads slower than first one.

markqvist commented 1 year ago

Thanks. There does seem to be some issues on devices with older/slower chips. Unfortunately it mostly comes down to the fact that Sideband has to unpack some stuff (the python dependencies and related libraries) into the apps private chache folder on first launch, or whenever the OS clears the app cache. On not-so-fast devices, this takes a while.

Things can probably be optimised a bit, and I will definitely have a look at it, but it is not the highest priority right now.

markqvist commented 1 year ago

This should be optimised in future releases, but I am currently waiting for the 2.2.0 release of Kivy to be able to do anything about this. Should be greatly improved when the dependency chain is updated, so closing this for now.