Repository navigation
Conversation
Buffer body spans in on_body() and deliver them to JS once per execute() call instead of once per chunk. A body sent as many small chunks no longer costs one C++ to JS call and Buffer per chunk. Signed-off-by: Guilherme Araújo <arauujogui@gmail.com>
Collaborator
|
Review requested:
|
Member
|
Any benchmark/perf numbers? |
Member
Author
|
https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/1903/ Benchmark |
ronag
reviewed
Nov 1, 2026
ronag
reviewed
Nov 1, 2026
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #67187 +/- ##
==========================================
+ Coverage 90.67% 90.71% +0.03%
==========================================
Files 797 797
Lines 278773 278924 +151
Branches 53607 53639 +32
==========================================
+ Hits 252778 253023 +245
+ Misses 16356 16264 -92
+ Partials 9639 9637 -2
🚀 New features to boost your workflow:
|
ronag
reviewed
Nov 2, 2026
ronag
left a comment
Member
There was a problem hiding this comment.
if we could somehow avoid the callback that would also be great.
Signed-off-by: Guilherme Araújo <arauujogui@gmail.com>
araujogui
force-pushed
the
http-batch-chunked-body
branch
from
November 3, 2026 17:58
bfabf27 to
8f623b9
Compare
Member
Author
I tried passing the body to |
Member
|
Given the change, I don't think this needs to be semver-major. |
ronag
approved these changes
Nov 4, 2026
Collaborator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Buffer body spans in
on_body()and deliver them to JS once perexecute()call instead of once per chunk. A body sent as many small chunks no longer costs one C++ to JS call andBufferper chunk.Chunks that arrive in the same read now produce a single
'data'event onIncomingMessage. Chunk boundaries were never documented, but code that treats each'data'event as a full message could break, so this needs a CITGM run.