What is the most efficient way to store and edit observable data? #2596
Replies: 2 comments 4 replies
-
Normal data structure complexity rules apply here. If you think it is going
to matter, you should measure your exact use case. It is quite atypical
though if storing data would be the bottleneck in your application.
…On Thu, Nov 5, 2020 at 1:43 PM Vlad ***@***.***> wrote:
I want to store my data in observable collection
But what is the most efficient way to do it?:
- use observable array
- use observable Map
- use observable object
Will observable Map change data faster than array/object like in plain
JavaScript?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<https://github.com/mobxjs/mobx/issues/2596>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAN4NBBINWF3XI4MWYYI2V3SOKTWRANCNFSM4TLMDRAA>
.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
That doesn't necessarily sound like a lot. But how do you know storage is
the bottleneck, and not say, updating the UI, or parsing, etc? And why are
you trying to store data faster than could be observed by a human? Sounds
like some batching / debouncing could go a long way as well.
…On Thu, Nov 5, 2020 at 2:43 PM Vlad ***@***.***> wrote:
The problem is that in my react native app state dynamically change about
50-100 times per second
And thats why i want to find most perfomant way - if storing data not
effectively it's dropped JS Thread and make awful UX
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2596 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAN4NBBD6AAFGMRPET5YVF3SOK2YTANCNFSM4TLOKJ2Q>
.
|
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
caiphaav
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to store my data in observable collection
But what is the most efficient way to do it?:
Will observable Map change data faster than array/object like in plain JavaScript?
Beta Was this translation helpful? Give feedback.
All reactions