Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.4k
url: simplify and improve url formatting#46736
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 Feb 19, 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.
2e032a0 to 4c6bdffComparenodejs-github-bot commented Feb 19, 2023
Uh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot commented Feb 19, 2023
nodejs-github-bot commented Feb 19, 2023
nodejs-github-bot commented Feb 20, 2023
nodejs-github-bot commented Feb 20, 2023
RaisinTen commented Feb 20, 2023
Is this for better performance? |
anonrig commented Feb 20, 2023
Not for this specifically, but I'm preparing for the new Ada changes where we will focus on enabling node.js-specific APIs to improve the performance. This is mainly for removing the URL parsing logic from Node.js core, and moving it to C++/Ada. |
nodejs-github-bot commented Feb 20, 2023
4c6bdff to c8f6c5aComparenodejs-github-bot commented Feb 20, 2023
nodejs-github-bot commented Feb 21, 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 Feb 24, 2023
Landed in 8073392 |
PR-URL: #46736 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: James M Snell <[email protected]>
danielleadams commented Apr 3, 2023
@anonrig this broke the build when landing in v18.x. Do you mind creating a backport PR? |
PR-URL: nodejs#46736 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: James M Snell <[email protected]>
anonrig commented Apr 5, 2023
This depends on #46723 |
PR-URL: nodejs#46736 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: nodejs#46736 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: nodejs#46736 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: #46736 Backport-PR-URL: #47435 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: James M Snell <[email protected]>
This pull request separates the logic of
kFormatandURLand moves the logic to C++.Quick summary:
searchsetter whenever searchParams is changed, instead of calculating href on the JS layer. This was done to remove any URL logic inside Node.js.kFormatsince it isn't used anymore after step 1 and 2.hasOpaquePathandhasHostfrom URL, since it was only needed forkFormatandsearchParamssetter.ToStringView()andToString()methods that @addaleax recommended.cc @nodejs/url @nodejs/cpp-reviewers