Optimize Your JSON Payload Efficiency x10 times
summary
Node.js cannot safely move JSON work to helper threads because V8 has a single JS heap, so this work chops large JSON traversal into resumable pieces using ES6 generators and an enumerator pattern. The yielded module (yieldable JSON) exposes stringifyAsync with a tunable intensity=512 that processes 1–460 MB payloads in slices, so an 80 MB stringify that blocks 2–3 s synchronously now serves 100 concurrent clients with negligible delay, claiming ~10x concurrency improvement; code is on npm/github.
AI-written summary · about
chapters (4)
- 0:00Start
- 0:20Principles of Node Js
- 12:48Why Javascript Was Picked Up by the Node Js
- 19:17Yield Double Jason
related talks
24mYou Did What? Understanding Node.js Optimizations
20mWhy we built another framework
29mThis DoS goes loop-di-loop – preventing DoS attacks in your Node.js application
37mThe Cost of Logging
46m10 secrets to improve Javascript Performance
33mTaking Node.js to The Ex-Stream: Stream to Scale
53mMastering Node.js Performance
30mCaching, Payloads, and Other Dark Arts
