url: improve URLSearchParams creation performance#47190
Merged
nodejs-github-bot merged 1 commit intonodejs:mainfrom Apr 3, 2023
Merged
url: improve URLSearchParams creation performance#47190nodejs-github-bot merged 1 commit intonodejs:mainfrom
nodejs-github-bot merged 1 commit intonodejs:mainfrom
Conversation
Collaborator
|
Review requested:
|
7ed296b to
3bb3f8c
Compare
Collaborator
3bb3f8c to
cfe7a49
Compare
Member
Author
|
@mscdex afaik, benchmark ci is down... |
Contributor
|
@anonrig Wait for it to come back up or ask @nodejs/build about it? |
Member
Author
Definitely, @mscdex. I created an issue: nodejs/build#3245 |
Collaborator
Member
Author
|
@nodejs/url please review |
joyeecheung
reviewed
Mar 24, 2023
watilde
reviewed
Mar 24, 2023
watilde
reviewed
Mar 24, 2023
cfe7a49 to
b2cd992
Compare
TimothyGu
approved these changes
Mar 25, 2023
| if ((typeof pair !== 'object' && typeof pair !== 'function') || | ||
| pair === null || | ||
| typeof pair[SymbolIterator] !== 'function') { | ||
| if (pair == null) { |
Member
There was a problem hiding this comment.
Can we move this branch to be with the catch-all else? You'll need to change the if clause below to
if (pair == null ||
typeof pair !== 'object' && typeof pair !== 'function' ||
typeof pair[SymbolIterator] !== 'function')) {but it reads a bit nicer.
Member
Author
|
@mscdex I started a benchmark CI: https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/1316/ @jasnell @nodejs/url Can you review? |
Collaborator
|
Landed in bf41f76 |
RafaelGSS
pushed a commit
that referenced
this pull request
Apr 5, 2023
PR-URL: #47190 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
RafaelGSS
pushed a commit
that referenced
this pull request
Apr 5, 2023
PR-URL: #47190 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Merged
RafaelGSS
pushed a commit
that referenced
this pull request
Apr 6, 2023
PR-URL: #47190 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
RafaelGSS
pushed a commit
that referenced
this pull request
Apr 7, 2023
PR-URL: #47190 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
RafaelGSS
pushed a commit
that referenced
this pull request
Apr 8, 2023
PR-URL: #47190 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
danielleadams
pushed a commit
that referenced
this pull request
Jul 6, 2023
PR-URL: #47190 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
MoLow
pushed a commit
to MoLow/node
that referenced
this pull request
Jul 6, 2023
PR-URL: nodejs#47190 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@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.
Summary
Footnote
There is one particular change made regarding to a comment written in 2017:
Upon investigating URL spec, I couldn't find any specific reasoning for this and removed it. The spec mentions that:
Benchmark Result
cc @nodejs/url