-
Notifications
You must be signed in to change notification settings - Fork 272
Performance #113
Comments
The library doesn't persist its Preferences in a Database but within the SharedPreferences wrapped in a Content Provider. This should give a significant performance boost. I'm not entirely sure this really works across multiple processes though 💭 Regarding the speed issue: This could be solved using a Memory Cache (see the open Issue here. |
Getting some high amount of ANR in play console report, not sure is related to Tray or not. Any plan to provide an option to wrap the sharedprefrence in content provider? Meanwhile i will try dpreference library in production and let you know the result does it works well in multiprocess. Edit:
|
@xDragonZ What library did you test? Have you tested in production yet? I am also seeing ANRs with traces going deep in to tray (as well as a few other places). They seem to be mostly on put calls |
Hi,
I stumble upon another library called DPreference and did a quick test (using latest Tray version). Looks like Tray performance is not that good compare to DPreference, maybe due to DPreference is a simple library. Anyway hopefully will see some improvement for Tray in future.
The text was updated successfully, but these errors were encountered: