Non-blocking parser
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 63.2k
- Forks
- 10.3k
- Avg merge
- 11d 20h
- Merged PRs (30d)
- 2
Description
I was having some troubles in our app with parsing JSON of several hundred MB. As a result I needed something that could handle that without starving the event-loop. I found https://github.com/ibmruntimes/yieldable-json and then made a socket.io-parser version which uses it https://github.com/hrdwdmrbl/socket.io-yieldable-parser.
Are you aware of any other similar parsers?
I was also interested in building a streaming parser, but it would seem like I would need to implement such a thing higher up the socket.io stack, eh?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read the linked yieldable-json and socket.io-yieldable-parser projects first, then inspect the socket.io parser path to determine where non-blocking or streaming behavior would belong. Done is not defined by the issue; a contributor would need maintainer agreement on whether to add a parser and its expected API.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- backend, performance
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 18/100