simple-store icon indicating copy to clipboard operation
simple-store copied to clipboard

Link to dangers of shared prefs

Open kurtisnelson opened this issue 6 years ago • 3 comments

Might be worthwhile explaining or pointing to an explanation of why not use SharedPrefs

Originally posted by @jbarr21 in https://github.com/uber/simple-store/pull/25#issuecomment-494649681

kurtisnelson avatar May 22 '19 18:05 kurtisnelson

Also compare to room and SQL.

kurtisnelson avatar Jul 03 '19 17:07 kurtisnelson

@kurtisnelson Will this make this project obsolete? If not why?

kawpiie avatar Jan 07 '20 02:01 kawpiie

The AndroidX shared preferences replacement will likely be backed by SQLite. This keeps the library easy to use for new developers but has a significant performance hit both on memory and CPU. SimpleStore uses the fundamental JVM file APIs and has zero overhead until opened.

kurtisnelson avatar Jan 07 '20 10:01 kurtisnelson