-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf: improved data serialization with stream #10
base: main
Are you sure you want to change the base?
Conversation
Thanks! That's interesting, but I am afraid that it will introduce difficulties for other viewers to load that data (for example, instead I might write a script to consume that data instead of using the viewer). I wonder if there is a better streaming solution to JSON format instead? |
ok, I got your meaning. I replaced msgpackr with And the BUT, the command So, I create a new script In summary, the performance problem seems to be solved by I don't know why the |
Description
As discussed before #9 (comment) . dump data returns a huge object, when we serialize the object with
JSON.stringify
, Node.js throws OOM or stack overflow.so, add msgpackr to serialize huge object with stream and buffer to resolve this problem.
Linked Issues
Additional context