Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Performance Increase: child_process.fork() reading of JSON #1864

Closed
wants to merge 1 commit into from
Closed

Performance Increase: child_process.fork() reading of JSON #1864

wants to merge 1 commit into from

Conversation

aikar
Copy link

@aikar aikar commented Oct 12, 2011

Improves how data is read from the buffer for child_process.fork() so that the jsonBuffer is not actually modified until all data that can be read from it is read.

Running the benchmark listed in this issue: #1863
found at https://github.com/aikar/wormhole/blob/5xperfdegrade/testperf.js

I'm seeing a 10-15% increase in performance, from 185-190k messages/sec to 215-220k/sec.

@ry ry closed this in 59be975 Oct 12, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants