This repository has been archived by the owner on Jan 1, 2025. It is now read-only.
High Frequency Updates - Tips & Ideas #1765
Unanswered
SmashPlusUltra
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on an App that is connected to a websocket that could recieve thousands of messages, each message is compound by multiple fields ({field1:'value1',...field20:'value20'}).
These messages are render in a table.
Case:Let's suppose I get 1000 messages x 20 fields = 20000 potential updates in the table if they change somehow.
I also perform some calculation for each message (basic validation with previous value, if it's greatter or not etc.).
Code: I have a selector and an atomfamily define, quite basic, like:
Problem:I must say I'm experiencing some lag when the data is rendering, even if I just assign values using set with no calculation at all.
Idea: Implement the recoil store in a webWorker, could it be possible? or at least achievable?
Any suggestion or experience would be appreciated,
Beta Was this translation helpful? Give feedback.
All reactions