Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,27 @@ Google even deprecated the multiprocess support because it never worked relieabl

DPreference is a way solving this problem powered by a ContentProvider. It works in multiple processed mode safely. You can declare your provider in a remote process, if you don't declare it in AndroidManifest.xml, it is operating in main process by default.

####Features
#### Features
- **works multiprocess safely**
- the same api like SharePreference
- compat old app versions, don't need to upgrade.
DPreference is just a wrapper of original sharepreference with contentprovider.

####Usage
#### Usage
```
DPreference dPreference = new DPreference(context, "default");
dPreference.setPrefString( "key", "value");

```
####Compare With Tray(https://github.com/grandcentrix/tray/)
#### Compare With Tray(https://github.com/grandcentrix/tray/)
- **DPreference**
`setString` called 1000 times cost : 375 ms
`getString` called 1000 times cost : 186 ms
- **Tray**
`setString` called 1000 times cost : 13699 ms
`getString` called 1000 times cost : 3496 ms

####So DPreference has a better performance.
#### So DPreference has a better performance.



Expand Down