Uh oh!
There was an error while loading. Please reload this page.
url: improve URLSearchParams creation performance - #47190
Conversation
nodejs-github-bot
commented
Mar 21, 2023
Review requested:
|
7ed296b to
3bb3f8cComparenodejs-github-bot
commented
Mar 21, 2023
3bb3f8c to
cfe7a49Compareanonrig
commented
Mar 21, 2023
@mscdex afaik, benchmark ci is down... |
mscdex
commented
Mar 21, 2023
@anonrig Wait for it to come back up or ask @nodejs/build about it? |
anonrig
commented
Mar 21, 2023
Definitely, @mscdex. I created an issue: nodejs/build#3245 |
nodejs-github-bot
commented
Mar 21, 2023
anonrig
commented
Mar 23, 2023
@nodejs/url please review |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
cfe7a49 to
b2cd992Compare| if ((typeof pair !== 'object' && typeof pair !== 'function') || | ||
| pair === null || | ||
| typeof pair[SymbolIterator] !== 'function') { | ||
| if (pair == null) { |
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||typeofpair!=='object'&&typeofpair!=='function'||typeofpair[SymbolIterator]!=='function')){but it reads a bit nicer.
@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? |
nodejs-github-bot
commented
Apr 3, 2023
Landed in bf41f76 |
PR-URL: #47190 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
PR-URL: #47190 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
PR-URL: #47190 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
PR-URL: #47190 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
PR-URL: #47190 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
PR-URL: nodejs#47190 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
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