Skip to content

Optimize JSON parsing from socket stream with JSONStream and improved…#39

Merged
lmangani merged 1 commit into
QXIP:masterfrom
WeiTang-star:optimize-socket-read
Aug 28, 2024
Merged

Optimize JSON parsing from socket stream with JSONStream and improved…#39
lmangani merged 1 commit into
QXIP:masterfrom
WeiTang-star:optimize-socket-read

Conversation

@WeiTang-star

Copy link
Copy Markdown
Contributor

the socket.read method was slow due to inefficient handling of large JSON data, resulting in performance bottlenecks. The updated implementation uses JSONStream for streaming JSON parsing, which significantly improves efficiency. By ensuring all data chunks are properly converted to Buffer and processed in batches, the new approach enhances data handling performance, reduces memory overhead, and accelerates the overall parsing process. This optimization addresses the latency issues and provides a more responsive and scalable solution for handling large volumes of JSON data from the socket stream.

@CLAassistant

CLAassistant commented Aug 28, 2024

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@lmangani

Copy link
Copy Markdown
Member

This is nothing short of amazing @WeiTang-star thanks for taking the time to submit this useful PR and welcome to the developers group!

@lmangani lmangani merged commit 45c70e6 into QXIP:master Aug 28, 2024
@lmangani

Copy link
Copy Markdown
Member

2.1.8 released and ready for testing. Thanks @WeiTang-star

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants