pilgr / Paper

Paper is a fast NoSQL-like storage for Java/Kotlin objects on Android with automatic schema migration support.
Apache License 2.0
2.35k stars 234 forks source link

Speed up concurrent read/writes for different keys #94

Closed pilgr closed 7 years ago

pilgr commented 7 years ago

Add KeyLocker and unit test.

Fix issue #65.

pilgr commented 7 years ago

Benchmark results for reading speed:

Reading 3 different lists using 3 different threads, time in ms:

              v2.5     v2.6*         Diff
1000 items      395      141          +280%
50000 items   17671     6509          +271%

benchmark run on Xperia Z3c.