FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

src: add ability to overload fast api functions by anonrig · Pull Request #48993 · nodejs/node · GitHub

/ node Public

src: add ability to overload fast api functions - #48993

Closed
anonrig wants to merge 2 commits into
nodejs:mainfrom
anonrig:add-fast-api-overloads
Closed

src: add ability to overload fast api functions#48993
anonrig wants to merge 2 commits into
nodejs:mainfrom
anonrig:add-fast-api-overloads

Conversation

anonrig commented Aug 1, 2023
edited
Loading

Copy link
Copy Markdown
Member

Uses v8 fast api overloads to define canParse method, and remove duplicated external symbols.

cc @nodejs/url @nodejs/performance

nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. labels Aug 1, 2023
anonrig marked this pull request as ready for review August 1, 2023 22:06
anonrig added commit-queue-rebase Add this label to allow the Commit Queue to land a PR in several commits. dont-land-on-v16.x labels Aug 1, 2023
anonrig force-pushed the add-fast-api-overloads branch from a0bdd05 to 12130bb Compare August 1, 2023 22:09

devsnek commented Aug 1, 2023

Copy link
Copy Markdown
Member

funny question to ask but could these functions be defined as overloads for SetFastMethod and SetFastMethodNoSideEffects?

Comment thread lib/internal/url.js Outdated

anonrig commented Aug 1, 2023

Copy link
Copy Markdown
Member Author

funny question to ask but could these functions be defined as overloads for SetFastMethod and SetFastMethodNoSideEffects?

haha, probably yes!

anonrig added the needs-benchmark-ci PR that need a benchmark CI run. label Aug 1, 2023
Comment thread src/node_url.cc Outdated
anonrig force-pushed the add-fast-api-overloads branch 2 times, most recently from 0457a0a to 4f9175c Compare August 6, 2023 15:27
anonrig force-pushed the add-fast-api-overloads branch from 4f9175c to 7f918a9 Compare August 8, 2023 02:23
anonrig requested review from devsnek and joyeecheung August 8, 2023 02:24
anonrig added the review wanted PRs that need reviews. label Aug 8, 2023

joyeecheung left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM, I'd suggest we run benchmark CI again before landing it (probably need to wait until the security embargo is lifted)

anonrig commented Aug 10, 2023
edited by aduh95
Loading

Copy link
Copy Markdown
Member Author

Benchmark CI: https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/1357/

Results
                                                       confidence improvement accuracy (*)   (**)  (***)
url/whatwg-url-canParse.js n=1000000 type='auth'                       0.28 %       ±2.29% ±3.04% ±3.96%
url/whatwg-url-canParse.js n=1000000 type='dot'                       -2.09 %       ±2.94% ±3.91% ±5.09%
url/whatwg-url-canParse.js n=1000000 type='file'                       4.04 %       ±4.24% ±5.64% ±7.34%
url/whatwg-url-canParse.js n=1000000 type='idn'                        0.36 %       ±1.14% ±1.51% ±1.97%
url/whatwg-url-canParse.js n=1000000 type='javascript'                 0.81 %       ±2.85% ±3.80% ±4.94%
url/whatwg-url-canParse.js n=1000000 type='long'                       0.16 %       ±1.49% ±1.98% ±2.59%
url/whatwg-url-canParse.js n=1000000 type='percent'                   -2.28 %       ±2.36% ±3.14% ±4.09%
url/whatwg-url-canParse.js n=1000000 type='short'                     -2.96 %       ±4.90% ±6.53% ±8.51%
url/whatwg-url-canParse.js n=1000000 type='ws'                         1.84 %       ±3.60% ±4.80% ±6.25%

anonrig added author ready PRs that have at least one approval, no outstanding review comments, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Aug 10, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 10, 2023

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

anonrig added the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 12, 2023
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 12, 2023

Copy link
Copy Markdown
Collaborator

Landed in 82e4ca1...607a545

nodejs-github-bot pushed a commit that referenced this pull request Aug 12, 2023
PR-URL: #48993
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
nodejs-github-bot pushed a commit that referenced this pull request Aug 12, 2023
PR-URL: #48993
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Ceres6 pushed a commit to Ceres6/node that referenced this pull request Aug 14, 2023
PR-URL: nodejs#48993
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Ceres6 pushed a commit to Ceres6/node that referenced this pull request Aug 14, 2023
PR-URL: nodejs#48993
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
RafaelGSS pushed a commit that referenced this pull request Aug 15, 2023
PR-URL: #48993
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
RafaelGSS pushed a commit that referenced this pull request Aug 15, 2023
PR-URL: #48993
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
UlisesGascon mentioned this pull request Aug 15, 2023
RafaelGSS pushed a commit to RafaelGSS/node that referenced this pull request Aug 15, 2023
PR-URL: nodejs#48993
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
RafaelGSS pushed a commit to RafaelGSS/node that referenced this pull request Aug 15, 2023
PR-URL: nodejs#48993
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
RafaelGSS pushed a commit that referenced this pull request Aug 16, 2023
PR-URL: #48993
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
RafaelGSS pushed a commit that referenced this pull request Aug 16, 2023
PR-URL: #48993
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
RafaelGSS pushed a commit that referenced this pull request Aug 17, 2023
PR-URL: #48993
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
RafaelGSS pushed a commit that referenced this pull request Aug 17, 2023
PR-URL: #48993
Reviewed-By: Joyee Cheung <joyeec9h3@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

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++. commit-queue-rebase Add this label to allow the Commit Queue to land a PR in several commits. needs-benchmark-ci PR that need a benchmark CI run. needs-ci PRs that need a full CI run. review wanted PRs that need reviews.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL