Closed brandonros closed 6 years ago
yes, line delimited JSON is much faster than a large valid json object. then you get to use very optimized JSON.parse
, however sometimes you do not control the input and need to stream parse a very large json object and that is what this module is for.
readMethodOne: read: 38932.477ms readMethodTwo: read: 78337.645ms
writeMethodOne: loop: 12520.245ms flushingStream: 3026.069ms writeMethodTwo: loop: 13056.963ms flushingStream: over 20 minutes
node --max-old-space-size=8192 stream.js