GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — http: batch body spans per parser execute by araujogui · Pull Request #67187 · nodejs/node

Conversation

@araujogui

@araujogui araujogui commented Nov 1, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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.

Chunks that arrive in the same read now produce a single 'data' event on IncomingMessage. Chunk boundaries were never documented, but code that treats each 'data' event as a full message could break, so this needs a CITGM run.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@araujogui
http: batch body spans per parser execute
fda4ac1
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 <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 1, 2026 17:55
@nodejs-github-bot

nodejs-github-bot commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/http
  • @nodejs/net
  • @nodejs/performance
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Copilot AI reviewed Nov 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. http_parser Issues and PRs related to the HTTP parser implementation or http_parser binding. needs-ci PRs that need a full CI run. labels Nov 1, 2026
@araujogui araujogui added the semver-major PRs that contain breaking changes and should be released in the next major version. label Nov 1, 2026
@ronag

ronag commented Nov 1, 2026

Copy link
Copy Markdown
Member

Any benchmark/perf numbers?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@araujogui

araujogui commented Nov 1, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/1903/

Benchmark
++ ./node-master benchmark/compare.js --set CPUSET=0-11 --analyze --old ./node-master --new ./node-pr --filter bench-parser-chunked -- http
                                                             confidence   improvement   accuracy (*)    (**)   (***)
http/bench-parser-chunked.js n=500 len=65536 chunkSize=1     ***          +3726.84 %   ±15.61%  ±21.03%  ±27.92%
http/bench-parser-chunked.js n=500 len=65536 chunkSize=16    ***          +2122.98 %   ±38.26%  ±51.57%  ±68.46%
http/bench-parser-chunked.js n=500 len=65536 chunkSize=256   ***           +522.99 %   ±40.48%  ±54.55%  ±72.41%
http/bench-parser-chunked.js n=500 len=65536 chunkSize=4096  ***            +43.47 %   ±11.18%  ±14.93%  ±19.55%

                                                                -3742.4%           0%           +3742.4%
http/bench-parser-chunked.js n=500 len=65536 chunkSize=1                         |███████████████████  +3726.84% ***
http/bench-parser-chunked.js n=500 len=65536 chunkSize=16                        |██████████░          +2122.98% ***
http/bench-parser-chunked.js n=500 len=65536 chunkSize=256                       |██                   +522.99% ***
http/bench-parser-chunked.js n=500 len=65536 chunkSize=4096                      |                     +43.47% ***

Rates were scaled by 1000x into HdrHistogram (3 significant figures).
Use --scale to adjust precision if needed.

Be aware that when doing many comparisons the risk of a false-positive
result increases. In this case, there are 4 comparisons, you can thus
expect the following amount of false-positive results:
  0.20 false positives, when considering a   5% risk acceptance (*, **, ***),
  0.04 false positives, when considering a   1% risk acceptance (**, ***),
  0.00 false positives, when considering a 0.1% risk acceptance (***)

The stars above are per-benchmark and uncorrected. Adjusting for the size of
this comparison set (Holm-Bonferroni), 4 comparisons remain significant at 5%.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ronag
ronag requested a review from mcollina November 1, 2026 19:15
ronag
ronag approved these changes Nov 1, 2026
View reviewed changes

@ronag ronag left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RSLGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
ronag
ronag reviewed Nov 1, 2026
View reviewed changes
Comment thread src/node_http_parser.cc Resolved

Uh oh!

There was an error while loading. Please reload this page.

ronag
ronag reviewed Nov 1, 2026
View reviewed changes
Comment thread src/node_http_parser.cc Resolved

Uh oh!

There was an error while loading. Please reload this page.

@codecov

codecov Bot commented Nov 1, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 79.41176% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.71%. Comparing base (97aed16) to head (8f623b9).
⚠️ Report is 73 commits behind head on main.

Files with missing lines Patch % Lines
src/node_http_parser.cc 79.41% 4 Missing and 3 partials ⚠️
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     
Files with missing lines Coverage Δ
src/node_http_parser.cc 84.96% <79.41%> (-0.38%) ⬇️

... and 43 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ronag
ronag reviewed Nov 2, 2026
View reviewed changes

@ronag ronag left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we could somehow avoid the callback that would also be great.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@araujogui
fixup! http: batch body spans per parser execute
8f623b9
Signed-off-by: Guilherme Araújo <[email protected]>
@araujogui
araujogui force-pushed the http-batch-chunked-body branch from bfabf27 to 8f623b9 Compare November 3, 2026 17:58
@araujogui

araujogui commented Nov 3, 2026

Copy link
Copy Markdown
Member Author

if we could somehow avoid the callback that would also be great.

I tried passing the body to kOnMessageComplete. It breaks test-http-pause-no-dump: kOnBody's MakeCallback drains nextTicks before end, and 'data' handlers depend on that.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@araujogui araujogui added the needs-citgm PRs that need a CITGM CI run. label Nov 3, 2026
mcollina
mcollina approved these changes Nov 4, 2026
View reviewed changes

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@mcollina

mcollina commented Nov 4, 2026

Copy link
Copy Markdown
Member

Given the change, I don't think this needs to be semver-major.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ronag
ronag approved these changes Nov 4, 2026
View reviewed changes
@ronag ronag added request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. and removed semver-major PRs that contain breaking changes and should be released in the next major version. labels Nov 4, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Nov 4, 2026
@nodejs-github-bot

nodejs-github-bot commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/78835/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@araujogui araujogui added the resume-ci Add this label to resume the latest eligible Jenkins CI run on a PR with an approving review. label Nov 5, 2026
@github-actions github-actions Bot removed the resume-ci Add this label to resume the latest eligible Jenkins CI run on a PR with an approving review. label Nov 5, 2026
@nodejs-github-bot

nodejs-github-bot commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/78863/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@araujogui araujogui added the resume-ci Add this label to resume the latest eligible Jenkins CI run on a PR with an approving review. label Nov 5, 2026
@github-actions github-actions Bot removed the resume-ci Add this label to resume the latest eligible Jenkins CI run on a PR with an approving review. label Nov 5, 2026
@nodejs-github-bot

nodejs-github-bot commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/78869/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mcollina mcollina added semver-minor PRs that contain new features and should be released in the next minor version. commit-queue PRs queued for automated landing through the Commit Queue. labels Nov 5, 2026
@nodejs-github-bot
nodejs-github-bot merged commit 36452f1 into nodejs:main Nov 5, 2026
80 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

nodejs-github-bot commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

Landed in 36452f1

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot removed the commit-queue PRs queued for automated landing through the Commit Queue. label Nov 5, 2026
aduh95 pushed a commit that referenced this pull request Nov 11, 2026
@araujogui @aduh95
http: batch body spans per parser execute
6b8a90d
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 <[email protected]>
PR-URL: #67187
Reviewed-By: Robert Nagy <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
@github-actions github-actions Bot mentioned this pull request Nov 11, 2026
2026-11-12, Version 27.0.0-alpha.0.1.0 (Alpha) #67415
Merged
nodejs-github-bot added a commit that referenced this pull request Nov 11, 2026
@nodejs-github-bot
2026-11-12, Version 27.0.0-alpha.0.1.0 (Alpha)
dd138af
Notable changes:

child_process:
  * (SEMVER-MINOR) add subprocess.timedOut (Marco) #66639
crypto:
  * (SEMVER-MINOR) make X.509 inspection guards explicit (Filip Skokan) #67245
  * (SEMVER-MINOR) add X.509 generation with CSR support (Filip Skokan) #67245
dns:
  * (SEMVER-MINOR) coalesce identical concurrent lookup() requests (Orgad Shaneh) #62599
doc:
  * add efekrskl to collaborators (Efe Karasakal) #67376
  * add Philipp Dunkel to contributors (Philipp Dunkel) #67378
  * add christianaurichzm to collaborators (Christian Aurich Zanettini Martins) #67377
http:
  * (SEMVER-MINOR) batch body spans per parser execute (Guilherme Araújo) #67187
sea:
  * (SEMVER-MINOR) generate a compile cache for the VFS modules (Matteo Collina) #66768
worker:
  * (SEMVER-MINOR) preload streams into startup snapshot (Matteo Collina) #66311

PR-URL: #67415
aduh95 pushed a commit that referenced this pull request Nov 12, 2026
@nodejs-github-bot @aduh95
2026-11-12, Version 27.0.0-alpha.0.1.0 (Alpha)
4f23168
Notable changes:

child_process:
  * (SEMVER-MINOR) add subprocess.timedOut (Marco) #66639
crypto:
  * (SEMVER-MINOR) make X.509 inspection guards explicit (Filip Skokan) #67245
  * (SEMVER-MINOR) add X.509 generation with CSR support (Filip Skokan) #67245
dns:
  * (SEMVER-MINOR) coalesce identical concurrent lookup() requests (Orgad Shaneh) #62599
doc:
  * add efekrskl to collaborators (Efe Karasakal) #67376
  * add Philipp Dunkel to contributors (Philipp Dunkel) #67378
  * add christianaurichzm to collaborators (Christian Aurich Zanettini Martins) #67377
http:
  * (SEMVER-MINOR) batch body spans per parser execute (Guilherme Araújo) #67187
sea:
  * (SEMVER-MINOR) generate a compile cache for the VFS modules (Matteo Collina) #66768
worker:
  * (SEMVER-MINOR) preload streams into startup snapshot (Matteo Collina) #66311

PR-URL: #67415
aduh95 pushed a commit that referenced this pull request Nov 12, 2026
@araujogui @aduh95
http: batch body spans per parser execute
6ba6de9
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 <[email protected]>
PR-URL: #67187
Reviewed-By: Robert Nagy <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
aduh95 pushed a commit that referenced this pull request Nov 12, 2026
@araujogui @aduh95
http: batch body spans per parser execute
22717d1
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 <[email protected]>
PR-URL: #67187
Reviewed-By: Robert Nagy <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
@github-actions github-actions Bot mentioned this pull request Nov 20, 2026
2026-11-30, Version 26.14.0 'Lithium' (LTS) #67664
Open
nodejs-github-bot added a commit that referenced this pull request Nov 20, 2026
@nodejs-github-bot
2026-11-30, Version 26.14.0 'Lithium' (LTS)
7692ae4
Notable changes:

child_process:
  * (SEMVER-MINOR) add subprocess.timedOut (Marco) #66639
doc:
  * add efekrskl to collaborators (Efe Karasakal) #67376
  * add Philipp Dunkel to contributors (Philipp Dunkel) #67378
  * add christianaurichzm to collaborators (Christian Aurich Zanettini Martins) #67377
fs:
  * (SEMVER-MINOR) add mkstemp() (Marco) #66484
http:
  * (SEMVER-MINOR) batch body spans per parser execute (Guilherme Araújo) #67187
lib:
  * (SEMVER-MINOR) speed up AbortSignal (Robert Nagy) #66789
module:
  * (SEMVER-MINOR) add --experimental-strip-private-modules (Marco Ippolito) #63869
process:
  * (SEMVER-MINOR) return unregister fn from finalization (Matteo Collina) #66482
test_runner:
  * use AsyncLocalStorage instead of async_hooks (Matteo Collina) #66795
  * (SEMVER-MINOR) add mockReturnValue and promise helpers (Guilherme Araújo) #66631
worker:
  * (SEMVER-MINOR) preload streams into startup snapshot (Matteo Collina) #66311
zlib:
  * (SEMVER-MINOR) add crc32c (Philipp Dunkel) #66828

PR-URL: #67664
aduh95 added a commit that referenced this pull request Nov 21, 2026
@aduh95
2026-11-30, Version 26.14.0 'Lithium' (LTS)
193c052
Notable changes:

child_process:
  * (SEMVER-MINOR) add subprocess.timedOut (Marco) #66639
doc:
  * add efekrskl to collaborators (Efe Karasakal) #67376
  * add Philipp Dunkel to contributors (Philipp Dunkel) #67378
  * add christianaurichzm to collaborators (Christian Aurich Zanettini Martins) #67377
fs:
  * (SEMVER-MINOR) add mkstemp() (Marco) #66484
http:
  * (SEMVER-MINOR) batch body spans per parser execute (Guilherme Araújo) #67187
lib:
  * (SEMVER-MINOR) speed up AbortSignal (Robert Nagy) #66789
module:
  * (SEMVER-MINOR) add --experimental-strip-private-modules (Marco Ippolito) #63869
process:
  * (SEMVER-MINOR) return unregister fn from finalization (Matteo Collina) #66482
test_runner:
  * use AsyncLocalStorage instead of async_hooks (Matteo Collina) #66795
  * (SEMVER-MINOR) add mockReturnValue and promise helpers (Guilherme Araújo) #66631
worker:
  * (SEMVER-MINOR) preload streams into startup snapshot (Matteo Collina) #66311
zlib:
  * (SEMVER-MINOR) add crc32c (Philipp Dunkel) #66828

PR-URL: #67664
gabylb pushed a commit to gabylb/node that referenced this pull request Nov 27, 2026
@araujogui @gabylb
http: batch body spans per parser execute
81df6c6
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 <[email protected]>
PR-URL: nodejs#67187
Reviewed-By: Robert Nagy <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
gabylb pushed a commit to gabylb/node that referenced this pull request Nov 27, 2026
@nodejs-github-bot @gabylb
2026-11-12, Version 27.0.0-alpha.0.1.0 (Alpha)
d26c0f2
Notable changes:

child_process:
  * (SEMVER-MINOR) add subprocess.timedOut (Marco) nodejs#66639
crypto:
  * (SEMVER-MINOR) make X.509 inspection guards explicit (Filip Skokan) nodejs#67245
  * (SEMVER-MINOR) add X.509 generation with CSR support (Filip Skokan) nodejs#67245
dns:
  * (SEMVER-MINOR) coalesce identical concurrent lookup() requests (Orgad Shaneh) nodejs#62599
doc:
  * add efekrskl to collaborators (Efe Karasakal) nodejs#67376
  * add Philipp Dunkel to contributors (Philipp Dunkel) nodejs#67378
  * add christianaurichzm to collaborators (Christian Aurich Zanettini Martins) nodejs#67377
http:
  * (SEMVER-MINOR) batch body spans per parser execute (Guilherme Araújo) nodejs#67187
sea:
  * (SEMVER-MINOR) generate a compile cache for the VFS modules (Matteo Collina) nodejs#66768
worker:
  * (SEMVER-MINOR) preload streams into startup snapshot (Matteo Collina) nodejs#66311

PR-URL: nodejs#67415
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@mcollina mcollina mcollina approved these changes
@ronag ronag ronag approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. http_parser Issues and PRs related to the HTTP parser implementation or http_parser binding. needs-ci PRs that need a full CI run. needs-citgm PRs that need a CITGM CI run. semver-minor PRs that contain new features and should be released in the next minor version.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@araujogui @nodejs-github-bot @ronag @mcollina
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.