| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
While nodejs#31046 did make async writes faster it at the same time made sync writes slower. This PR corrects this while maintaining performance improvements.
| } | ||
| } else { | ||
| if (!state.destroyed) { | ||
| if (state.buffered.length > state.bufferedIndex) { |
There was a problem hiding this comment.
since clearBuffer is not inlineable this condition removes a lot of the overhead of calling into clearBuffer
Sorry, something went wrong.
| if (state.buffered.length > state.bufferedIndex) { | ||
| clearBuffer(stream, state); | ||
| } | ||
| if (state.needDrain || cb !== nop || state.ending || state.destroyed) { |
There was a problem hiding this comment.
This condition was an optimization which did not add much if any value and made the code more complex.
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
streams/writable-manywrites.js callback='no' writev='no' sync='no' n=2000000 *** 12.92 % ±0.79% ±1.05% ±1.37% streams/writable-manywrites.js callback='no' writev='no' sync='yes' n=2000000 ** -2.58 % ±1.56% ±2.08% ±2.72% streams/writable-manywrites.js callback='no' writev='yes' sync='no' n=2000000 *** 35.82 % ±2.93% ±3.90% ±5.08% streams/writable-manywrites.js callback='no' writev='yes' sync='yes' n=2000000 0.48 % ±2.18% ±2.90% ±3.78% streams/writable-manywrites.js callback='yes' writev='no' sync='no' n=2000000 *** 13.58 % ±2.63% ±3.50% ±4.56% streams/writable-manywrites.js callback='yes' writev='no' sync='yes' n=2000000 *** -3.50 % ±1.81% ±2.41% ±3.14% streams/writable-manywrites.js callback='yes' writev='yes' sync='no' n=2000000 *** 15.47 % ±2.17% ±2.89% ±3.76% streams/writable-manywrites.js callback='yes' writev='yes' sync='yes' n=2000000 1.47 % ±2.02% ±2.69% ±3.50% |
Sorry, something went wrong.
There was a problem hiding this comment.
RSLGTM
Sorry, something went wrong.
Sorry, something went wrong.
While #31046 did make async writes faster it at the same time made sync writes slower. This PR corrects this while maintaining performance improvements. PR-URL: #33032 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Zeyu Yang <himself65@outlook.com>
While #31046 did make async writes faster it at the same time made sync writes slower. This PR corrects this while maintaining performance improvements. PR-URL: #33032 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Zeyu Yang <himself65@outlook.com>
While #31046 did make async writes faster it at the same time made sync writes slower. This PR corrects this while maintaining performance improvements. PR-URL: #33032 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Zeyu Yang <himself65@outlook.com>
| Back | FazBrowse Home | New Git URL |
While #31046 did make async writes faster it at the same time made sync writes slower.
This PR corrects this while maintaining performance improvements.
Checklist