P-Y on Nostr: I've been reading the sources of Android Datastore internals and.... A library who's ...
I've been reading the sources of Android Datastore internals and....
A library who's sole purpose is dumping a binary to a file and reading it later has no business being that complex.
So many layers of locks & suspending functions, it's really hard to reason about.
SharedPreferencesImpl, Tape, SQLite internals are all easier to understand than Datastore...
https://github.com/androidx/androidx/tree/androidx-main/datastore
A library who's sole purpose is dumping a binary to a file and reading it later has no business being that complex.
So many layers of locks & suspending functions, it's really hard to reason about.
SharedPreferencesImpl, Tape, SQLite internals are all easier to understand than Datastore...
https://github.com/androidx/androidx/tree/androidx-main/datastore