Assigned
Status Update
Comments
ma...@marcardar.com <ma...@marcardar.com> #2
My dependencies:
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'androidx.preference:preference:1.1.1'
implementation 'com.google.android.gms:play-services-wearable:17.1.0'
implementation 'com.google.android.material:material:1.4.0'
If I remove androidx.appcompat:appcompat:1.4.0
, the warning vanishes, so I imagine there's some transitive dependency on an older version of androidx.appcompat:appcompat
that doesn't have the warning.
Description
DataStore Version used: v1.1.0
Devices/Android versions reproduced on: all
Hello,
Looks like reading preferences from DataStore got visibly slower in version v1.1.0. I created a sample repository that presents this issue:
Steps to reproduce:
- build & launch the app and tap the 'Click me' button a few times
- look at logcat for lines tagged with `DataStoreSlowness` - it takes a few milliseconds per job on average (apart from the first one that's slower, but that's understandable).
However, if you downgrade the datastore to v1.0.0 (in `libs.versions.toml`), and perform the same steps, the logged reading times are a few times quicker - usually under 1ms.
This isn't the end of the world of course, but we've noticed this only because this 'lag' started causing some UI glitches. We'll address them, but wanted to make sure that this is expected and not a result of e.g. some caching bug?
Thanks a lot