| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:31ef9fcd-1c0c-3f0c-0869-0c729a9371d4 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 83AC:3D95DA:142229C:1B60AD7:6A4C7CB3 |
| html-safe-nonce | e18d0554d971d263c5154e418408b4e3658289a17fbd1a8b826beffbc20d22e4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0FDOjNEOTVEQToxNDIyMjlDOjFCNjBBRDc6NkE0QzdDQjMiLCJ2aXNpdG9yX2lkIjoiNjUzNzM4Nzg0Nzc4Njk4NjY3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c7716e09691155ea9165acb3322ba380b337d286892e4363662f2f5e0408f0c9 |
| hovercard-subject-tag | pull_request:2823960568 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/nodejs/node/pull/59873/files |
| twitter:image | https://avatars.githubusercontent.com/u/129687137?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/129687137?s=400&v=4 |
| og:image:alt | The changes optimize the end-of-stream.js module to only preserve AsyncLocalStorage context when it's actually needed, improving performance by avoiding ALS overhead in the common case where no... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cd470457e909b9d062f8002cf438ba870e6acff6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/nodejs/node/pull/59873/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F59873%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F59873%2Ffiles |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=nodejs%2Fnode |
| Reload | https://github.com/nodejs/node/pull/59873/files |
| Reload | https://github.com/nodejs/node/pull/59873/files |
| Reload | https://github.com/nodejs/node/pull/59873/files |
| Please reload this page | https://github.com/nodejs/node/pull/59873/files |
|
nodejs
| https://github.com/nodejs |
| node | https://github.com/nodejs/node |
| Please reload this page | https://github.com/nodejs/node/pull/59873/files |
|
Notifications
| https://github.com/login?return_to=%2Fnodejs%2Fnode |
|
Fork
36k
| https://github.com/login?return_to=%2Fnodejs%2Fnode |
|
Star
118k
| https://github.com/login?return_to=%2Fnodejs%2Fnode |
|
Code
| https://github.com/nodejs/node |
|
Issues
1.4k
| https://github.com/nodejs/node/issues |
|
Pull requests
964
| https://github.com/nodejs/node/pulls |
|
Actions
| https://github.com/nodejs/node/actions |
|
Projects
| https://github.com/nodejs/node/projects |
|
Security and quality
0
| https://github.com/nodejs/node/security |
|
Insights
| https://github.com/nodejs/node/pulse |
|
Code
| https://github.com/nodejs/node |
|
Issues
| https://github.com/nodejs/node/issues |
|
Pull requests
| https://github.com/nodejs/node/pulls |
|
Actions
| https://github.com/nodejs/node/actions |
|
Projects
| https://github.com/nodejs/node/projects |
|
Security and quality
| https://github.com/nodejs/node/security |
|
Insights
| https://github.com/nodejs/node/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose |
| nodejs-github-bot | https://github.com/nodejs-github-bot |
| nodejs:main | https://github.com/nodejs/node/tree/main |
| avcribl:improve-stream-finished-perf | https://github.com/avcribl/node/tree/improve-stream-finished-perf |
|
Conversation
53
| https://github.com/nodejs/node/pull/59873 |
|
Commits
9
| https://github.com/nodejs/node/pull/59873/commits |
|
Checks
40
| https://github.com/nodejs/node/pull/59873/checks |
|
Files changed
| https://github.com/nodejs/node/pull/59873/files |
| Please reload this page | https://github.com/nodejs/node/pull/59873/files |
|
stream: improve performance of finished()
| https://github.com/nodejs/node/pull/59873/files#top |
|
Show all changes
9 commits
| https://github.com/nodejs/node/pull/59873/files |
|
765dd80
stream: preserve AsyncLocalStorage on finished only when needed
avcribl Sep 13, 2025
| https://github.com/nodejs/node/pull/59873/commits/765dd80f46959f2674added04ba7a520d8709ec4 |
|
f5595c6
benchmark: added finished benchmark
avcribl Sep 13, 2025
| https://github.com/nodejs/node/pull/59873/commits/f5595c6809bb2900fb376f1431ac8963c081466b |
|
66dd3f6
removed async_hooks
avcribl Sep 13, 2025
| https://github.com/nodejs/node/pull/59873/commits/66dd3f670d0a18461a0a06c7ddffccbb332a510a |
|
48db583
modified the benchmark test
avcribl Sep 13, 2025
| https://github.com/nodejs/node/pull/59873/commits/48db583d3f3271e0a1e5d8d56471e36d937d18e8 |
|
8e5b4a2
added check if no-async-context-frame is enabled or not
avcribl Sep 16, 2025
| https://github.com/nodejs/node/pull/59873/commits/8e5b4a23869b6569dd7ea2e473c3573f11f365e4 |
|
2d55f08
added unit tests
avcribl Sep 17, 2025
| https://github.com/nodejs/node/pull/59873/commits/2d55f081bbb5a562d64c2b5e4b26350e6a824269 |
|
a7f49d3
bumped the number of iterations
avcribl Sep 17, 2025
| https://github.com/nodejs/node/pull/59873/commits/a7f49d3b5b299ece908f67d256fd3cea064924a6 |
|
c49b350
fixed lint issues
avcribl Sep 17, 2025
| https://github.com/nodejs/node/pull/59873/commits/c49b350cd08a71f43e68c10499f07188d8334953 |
|
d51ca0d
expanded on the unit test
avcribl Sep 18, 2025
| https://github.com/nodejs/node/pull/59873/commits/d51ca0dcb2a117a2e00b3a17eb985a9d37bf429f |
|
Clear filters
| https://github.com/nodejs/node/pull/59873/files |
| Please reload this page | https://github.com/nodejs/node/pull/59873/files |
| Please reload this page | https://github.com/nodejs/node/pull/59873/files |
|
finished.js
| https://github.com/nodejs/node/pull/59873/files#diff-f75319114710586becbd19e1c98460a3e4175e2ebc15508592d28d11b5931440 |
|
end-of-stream.js
| https://github.com/nodejs/node/pull/59873/files#diff-f355a772a51133f54ef288a365ec05a70b9f3f2e0a2f46f5ba2612e31a62f810 |
|
test-stream-finished-async-local-storage.js
| https://github.com/nodejs/node/pull/59873/files#diff-8593dc0f5191daec35a43f517202fc4c4cd724f7a44b70d5f30b1870c404ea13 |
|
test-stream-finished-bindAsyncResource-path.js
| https://github.com/nodejs/node/pull/59873/files#diff-cb976053111f6e4568f231f57695cfe3d8fc7439644f8bc6068f578c0bcaa312 |
|
test-stream-finished-default-path.js
| https://github.com/nodejs/node/pull/59873/files#diff-9817f046ad5636ea7be57044fd249aec5c7e190335d06471fed7bc5b97407436 |
| benchmark/streams/finished.js | https://github.com/nodejs/node/pull/59873/files#diff-f75319114710586becbd19e1c98460a3e4175e2ebc15508592d28d11b5931440 |
|
View file
| https://github.com/avcribl/node/blob/d51ca0dcb2a117a2e00b3a17eb985a9d37bf429f/benchmark/streams/finished.js |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/nodejs/node/pull/59873/{{ revealButtonHref }} |
| lib/internal/streams/end-of-stream.js | https://github.com/nodejs/node/pull/59873/files#diff-f355a772a51133f54ef288a365ec05a70b9f3f2e0a2f46f5ba2612e31a62f810 |
|
View file
| https://github.com/avcribl/node/blob/d51ca0dcb2a117a2e00b3a17eb985a9d37bf429f/lib/internal/streams/end-of-stream.js |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/nodejs/node/pull/59873/{{ revealButtonHref }} |
|
| https://github.com/nodejs/node/pull/59873/files#diff-f355a772a51133f54ef288a365ec05a70b9f3f2e0a2f46f5ba2612e31a62f810 |
|
| https://github.com/nodejs/node/pull/59873/files#diff-f355a772a51133f54ef288a365ec05a70b9f3f2e0a2f46f5ba2612e31a62f810 |
|
| https://github.com/nodejs/node/pull/59873/files#diff-f355a772a51133f54ef288a365ec05a70b9f3f2e0a2f46f5ba2612e31a62f810 |
|
| https://github.com/nodejs/node/pull/59873/files#diff-f355a772a51133f54ef288a365ec05a70b9f3f2e0a2f46f5ba2612e31a62f810 |
| test/parallel/test-stream-finished-async-local-storage.js | https://github.com/nodejs/node/pull/59873/files#diff-8593dc0f5191daec35a43f517202fc4c4cd724f7a44b70d5f30b1870c404ea13 |
|
View file
| https://github.com/avcribl/node/blob/d51ca0dcb2a117a2e00b3a17eb985a9d37bf429f/test/parallel/test-stream-finished-async-local-storage.js |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/nodejs/node/pull/59873/{{ revealButtonHref }} |
| test/parallel/test-stream-finished-bindAsyncResource-path.js | https://github.com/nodejs/node/pull/59873/files#diff-cb976053111f6e4568f231f57695cfe3d8fc7439644f8bc6068f578c0bcaa312 |
|
View file
| https://github.com/avcribl/node/blob/d51ca0dcb2a117a2e00b3a17eb985a9d37bf429f/test/parallel/test-stream-finished-bindAsyncResource-path.js |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/nodejs/node/pull/59873/{{ revealButtonHref }} |
| mcollina | https://github.com/mcollina |
| Sep 18, 2025 | https://github.com/nodejs/node/pull/59873/files#r2358882347 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/nodejs/node/pull/59873/files |
| mcollina | https://github.com/mcollina |
| Sep 18, 2025 | https://github.com/nodejs/node/pull/59873/files#r2358882580 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/nodejs/node/pull/59873/files |
| Flarna | https://github.com/Flarna |
| Sep 18, 2025 | https://github.com/nodejs/node/pull/59873/files#r2358980671 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/nodejs/node/pull/59873/files |
| avcribl | https://github.com/avcribl |
| Sep 18, 2025 | https://github.com/nodejs/node/pull/59873/files#r2361340108 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/nodejs/node/pull/59873/files |
| avcribl | https://github.com/avcribl |
| Sep 24, 2025 | https://github.com/nodejs/node/pull/59873/files#r2375816153 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| @mcollina | https://github.com/mcollina |
| Please reload this page | https://github.com/nodejs/node/pull/59873/files |
| test/parallel/test-stream-finished-default-path.js | https://github.com/nodejs/node/pull/59873/files#diff-9817f046ad5636ea7be57044fd249aec5c7e190335d06471fed7bc5b97407436 |
|
View file
| https://github.com/avcribl/node/blob/d51ca0dcb2a117a2e00b3a17eb985a9d37bf429f/test/parallel/test-stream-finished-default-path.js |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/nodejs/node/pull/59873/{{ revealButtonHref }} |
| Please reload this page | https://github.com/nodejs/node/pull/59873/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |