matrix-org / matrix-android-sdk

The Matrix SDK for Android - DEPRECATED
Apache License 2.0
370 stars 132 forks source link

MXFileStore takes too long time to open and call onStoreReady callback #523

Open ahosseinich opened 4 years ago

ahosseinich commented 4 years ago

When the mainactivity is created i open the store. it takes 5 seconds the store to be ready. if i close the app and open it again, it takes 5 seconds again the store be ready. in this 5 second till store be ready, just few KB transfers through network. whats the problem that store takes too long to be ready?

bmarty commented 4 years ago

The store de-serializes all data that has been stored in files. It can take a long time to be performed. This is one of the reason why we are entirely rewriting the APK in RiotX.