Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
fs: validate fd synchronously on c++#51027
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Conversation
anonrig commented Dec 3, 2023 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
targos commented Dec 3, 2023
It is semver-major, and would be a very disruptive change, especially if it happens incrementally. It's been a general rule for a long time in Node.js that validation happens synchronously. |
mcollina left a comment
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.
I'm -1 for the reasons mentioned by @targos.
tniessen commented Dec 3, 2023
See also #49970, which is blocked on the same problem as far as I am aware. |
anonrig commented Dec 3, 2023
mcollina left a comment
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
d406848 to 7935836Compareanonrig commented Dec 5, 2023
cc @nodejs/fs @nodejs/cpp-reviewers |
nodejs-github-bot commented Dec 5, 2023
nodejs-github-bot commented Dec 5, 2023
nodejs-github-bot commented Dec 6, 2023
nodejs-github-bot commented Dec 6, 2023
nodejs-github-bot commented Dec 7, 2023
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot commented Dec 12, 2023
nodejs-github-bot commented Dec 12, 2023
nodejs-github-bot commented Dec 15, 2023
nodejs-github-bot commented Dec 15, 2023
nodejs-github-bot commented Dec 15, 2023
nodejs-github-bot commented Dec 17, 2023
nodejs-github-bot commented Dec 17, 2023
mcollina left a comment
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
nodejs-github-bot commented Dec 18, 2023
nodejs-github-bot commented Dec 18, 2023
Landed in 65e70bf |
PR-URL: #51027 Reviewed-By: Matteo Collina <[email protected]>
PR-URL: #51027 Reviewed-By: Matteo Collina <[email protected]>
This PR moves all
getValidatedFdcalls to C++. Improves error path performance by ~17-42%.Benchmark CI: https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/1482/