Uh oh!
There was an error while loading. Please reload this page.
url: simplify and improve url formatting - #46736
Merged
Merged
Conversation
anonrigforce-pushed
the
improve-url-parsing
branch
from
February 19, 2023 19:13
2e032a0 to
4c6bdffComparenodejs-github-bot
commented
Feb 19, 2023
Collaborator
Uh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot
commented
Feb 19, 2023
Collaborator
nodejs-github-bot
commented
Feb 19, 2023
Collaborator
24 tasks
nodejs-github-bot
commented
Feb 20, 2023
Collaborator
nodejs-github-bot
commented
Feb 20, 2023
Collaborator
RaisinTen
commented
Feb 20, 2023
Member
Is this for better performance? |
anonrig
commented
Feb 20, 2023
MemberAuthor
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
Collaborator
anonrigforce-pushed
the
improve-url-parsing
branch
from
February 20, 2023 23:03
4c6bdff to
c8f6c5aComparenodejs-github-bot
commented
Feb 20, 2023
Collaborator
26 tasks
nodejs-github-bot
commented
Feb 21, 2023
Collaborator
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
Collaborator
Landed in 8073392 |
28 tasks
targos pushed a commit
that referenced
this pull request
Mar 13, 2023
PR-URL: #46736 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
danielleadams
commented
Apr 3, 2023
Contributor
@anonrig this broke the build when landing in v18.x. Do you mind creating a backport PR? |
This was referenced Apr 3, 2023
anonrig
commented
Apr 5, 2023
MemberAuthor
This depends on #46723 |
anonrig added a commit
to anonrig/node
that referenced
this pull request
Apr 11, 2023
PR-URL: nodejs#46736 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
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 freeto 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.
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