Faster than C? Parsing Node.js Streams!
summary
A pure-JS MySQL parser reaches parity with libmysql C bindings and shows a 2x improvement in parts (benchmarks jump from ~350k to ~450k rows/sec). Development uses benchmark-driven development, heavy data collection and R/ggplot2 analysis, and concrete hacks like buffer whole packets to reduce state and generate per-query row functions with eval; the implementation is open source, measured, iterated, and exposes V8 heap/GC behavior that explains intermittent slowdowns.
AI-written summary · about
chapters (5)
related talks
53mMastering Node.js Performance
23mGraphQL - Accelerated
24mYou Did What? Understanding Node.js Optimizations
24m10 things I learned making the fastest JS server runtime in the world
33mReaching Ludicrous Speed
33mTaking Node.js to The Ex-Stream: Stream to Scale
53mMastering Node.js Performance
11mNode.js Performance Optimizations
