What’s The Bug?
If Anytype stores a high number of objects and has been closed for a few hours, the startup time increases significantly. Testing on two devices—one with a few hundred notes and another with over 15,000—showed average startup times of about 2 seconds and 12 seconds, respectively.
I suspect the object count is the primary cause. Anytype organizes data into objects (e.g., notes) and resources (e.g., images, videos). Resources are unlikely to be the issue. If resources preloaded during startup, images in notes would load immediately. However, opening a note with images often results in delays, with some images failing to load initially. This suggests object count is the only plausible cause of the long startup times.
In-memory caching does not resolve the issue. While caching can speed up reopening apps after quick successive launches, the problem lies in the prolonged startup time after Anytype has been idle for a while. In-memory caching does not address this scenario.
This significantly affects usability for users with a large number of notes
Related Issues
Similar Issue was mentioned here.
How To Reproduce It
- Add 15000 notes
- Close Anytype
- Wait a few hours
- Open Anytype
The Expected Behavior
Anytype opens up in a few Seconds maximum, even if the app is closed for a while.
Device
Galaxy A34 5G
OS
Android 14
Anytype Version
Version 0.34.26
Network Mode
P2P, Anytype Storage Limit reached
Technical Information
Device: SM-A346B samsung
Android version: 34
App version: 0.34.26
Build number: 3426
Library version: 0.38.9
Account ID: AAJJojhHyjRpABQ9cqu4ANcVFCuu91ejVWGwHZNVdPNiVatq
Device ID: 12D3KooWM7HZzPHsD2b6NBxWNfqDFYs1oRWq9WJxVTgU2yqU9WCR
Analytics ID: 4cc876fe-7bc8-4d60-b256-9bea5153e19c