Comments (3)
No transformation of the binary stream for more speed is impossible. tl;dr Everything needs to be passed to a different process. Please read this for more infos about Binder and the ContentProvider.
Another thing: Tray isn't fast (and it will never be fast) by design. If you want something fast use the SharedPreferences
but you will lose the multiprocess support. That in mind, it is properly not a good idea to store complex data structures in Tray unless it is very important for the data to stay in sync and persisted between different processes. Otherwise it would be a better idea to use a seperate database or a simple file for the data.
There is also a Binder
limitation of ~2mb per transaction (visible in logcat as !!! FAILED BINDER TRANSACTION !!!
). This means you can't save unlimited data per key.
But I see some cases where persisting a byte[]
or a stream could be useful. I hope it does not get abused π.
from tray.
Thx a lot @pascal Welsch for the details. Though Tray is not what we are
looking for, I wish you good luck with your lib.
2015-07-15 11:02 GMT-07:00 Pascal Welsch [email protected]:
No transformation of the binary stream for more speed is impossible. tl;dr
Everything needs to be passed to a different process. Please read this
#28 (comment)
for more infos about Binder and the ContentProvider.Another thing: Tray isn't fast (and it will never be fast) by design. If
you want something fast use the SharedPreferences but you will lose the
multiprocess support. That in mind, it is properly not a good idea to store
complex data structures in Tray unless it is very important for the data to
stay in sync and persisted between different processes. Otherwise it would
be a better idea to use a seperate database or a simple file for the data.There is also a Binder limitation of ~2mb per transaction (visible in
logcat as !!! FAILED BINDER TRANSACTION !!!). This means you can't save
unlimited data per key.But I see some cases where persisting a byte[] or a stream could be
useful. I hope it does not get abused [image: π].β
Reply to this email directly or view it on GitHub
#33 (comment).
from tray.
@stephanenicolas What about the library you looking for? Did you find itγThx
from tray.
Related Issues (20)
- minSdkVersion HOT 1
- ConcurrentModificationException in ContentProviderStorage.java:93 HOT 3
- NullPointerException in ContentProviderStorage.java:104 HOT 1
- Report ContentProvider Not Found information to android bugs HOT 2
- How to upgrade data? HOT 2
- TrayRuntimeException in TrayContract
- RunTimeException: Unable to create application caused by TrayContract.getAuthority HOT 4
- How to migrate from default module to my own module HOT 1
- List all prefs in module HOT 1
- Question: minSdkVersion value HOT 1
- android-DirectBoot HOT 3
- Share data between apps. HOT 1
- How to share values between apps? HOT 2
- delet tray.db and how to recreate HOT 1
- Accessing Outside of Container App 2.0 HOT 1
- java.lang.NoClassDefFoundError: Failed resolution of: Lnet/grandcentrix/tray/R$string; HOT 1
- can not support multi app share data HOT 1
- δΈη₯ιζδΉεδΊηbug HOT 1
- NullPointerException at unregisterOnTrayPreferenceChangeListener in Service HOT 4
- ANR that leads to app crashing, support needed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tray.