KomodoPlatform / atomicDEX

This is the official AtomicDEX mobile (smartphone app) repository
https://atomicdex.io
GNU General Public License v2.0
10 stars 15 forks source link

Cache previous balances, interaction during "activation" #140

Open theblackmallard opened 4 years ago

theblackmallard commented 4 years ago

It was brought up on Telegram that the app is slow on startup "activating coins" this is likely just a feeling of it being slow because there is no interaction with the app during "activation". A solution to make this feel faster would be to skip the "activating N coin" loading, and jump right to coin balances from the previous logout.

Most users just logging in aren't expecting to see different balances from the last time they logged out, so loading balances from cache would work well for them (then sync balances) and would be significantly faster from starting app to being able to interact with the wallet.

For users expecting different balances, if you last had the app open with 10 KMD and lately received 5 KMD, it would "feel" faster to load immediately with the 10 KMD from cache, and run a single "syncing balances" loading wheel, all while users can see their balances (from cache) and interact with the wallet.

dth88 commented 4 years ago

@theblackmallard hi, thank you for this report. We're already in the process of trying to make it feel faster, hopefully, we will deliver in the next update.

tonymorony commented 4 years ago

We're already in the process of trying to make it feel faster, hopefully, we will deliver in the next update.

Coins activation process was already patched in 0.2.16 by new Atomicdex-api batch method usage - now it works really fast

Balances information caching is definetly an interesting idea