url: simplify and improve url formatting#46736
Merged
nodejs-github-bot merged 1 commit intonodejs:mainfrom Feb 24, 2023
Merged
Conversation
2e032a0 to
4c6bdff
Compare
Collaborator
addaleax
reviewed
Feb 19, 2023
Collaborator
Collaborator
24 tasks
Collaborator
Collaborator
Member
|
Is this for better performance? |
Member
Author
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. |
Collaborator
4c6bdff to
c8f6c5a
Compare
Collaborator
26 tasks
Collaborator
addaleax
reviewed
Feb 21, 2023
TimothyGu
reviewed
Feb 21, 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>
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
added a commit
to anonrig/node
that referenced
this pull request
Apr 5, 2023
PR-URL: nodejs#46736 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Member
Author
|
This depends on #46723 |
anonrig
added a commit
to anonrig/node
that referenced
this pull request
Apr 6, 2023
PR-URL: nodejs#46736 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
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>
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 free
to 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