-
-
Couldn't load subscription status.
- Fork 33.6k
errors: improve performance of determineSpecificType #49696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
errors: improve performance of determineSpecificType #49696
Conversation
|
can you mark this as author-ready please? |
The tests are failing @Uzlopak |
|
Oha. Will focus on this when the other PR got merged. |
|
@anonrig |
|
Can this be merged? |
|
We can merge this once the CI finishes. Pending benchmark CI: https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/1420/ |
Commit Queue failed- Loading data for nodejs/node/pull/49696 ✔ Done loading data for nodejs/node/pull/49696 ----------------------------------- PR info ------------------------------------ Title errors: improve performance of determineSpecificType (#49696) ⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile! Branch Uzlopak:improve-determine-specific-type -> nodejs:main Labels errors, author ready, needs-ci, needs-benchmark-ci, commit-queue-squash Commits 8 - errors: improve performance of determine-specific-type - fix lint - fix lint - fix function serialization - Merge branch 'main' into improve-determine-specific-type - fix invalidArgTypeHelper - fix test - Merge branch 'main' into improve-determine-specific-type Committers 2 - uzlopak - GitHub PR-URL: https://github.com/nodejs/node/pull/49696 Reviewed-By: Yagiz Nizipli Reviewed-By: Moshe Atlow ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/49696 Reviewed-By: Yagiz Nizipli Reviewed-By: Moshe Atlow -------------------------------------------------------------------------------- ℹ This PR was created on Mon, 18 Sep 2023 03:57:53 GMT ✔ Approvals: 2 ✔ - Yagiz Nizipli (@anonrig) (TSC): https://github.com/nodejs/node/pull/49696#pullrequestreview-1642824192 ✔ - Moshe Atlow (@MoLow) (TSC): https://github.com/nodejs/node/pull/49696#pullrequestreview-1636924932 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2023-09-25T19:11:17Z: https://ci.nodejs.org/job/node-test-pull-request/54226/ ℹ Last Benchmark CI on 2023-09-25T19:05:12Z: https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/1420/ - Querying data for job/node-test-pull-request/54226/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ No git cherry-pick in progress ✔ No git am in progress ✔ No git rebase in progress -------------------------------------------------------------------------------- - Bringing origin/main up to date... From https://github.com/nodejs/node * branch main -> FETCH_HEAD ✔ origin/main is now up-to-date - Downloading patch for 49696 From https://github.com/nodejs/node * branch refs/pull/49696/merge -> FETCH_HEAD ✔ Fetched commits as f16f41c5b3cf..3d4b956b2292 -------------------------------------------------------------------------------- Auto-merging lib/internal/errors.js [main 2ca76c9a83] errors: improve performance of determine-specific-type Author: uzlopak Date: Mon Sep 18 05:56:37 2023 +0200 3 files changed, 136 insertions(+), 15 deletions(-) create mode 100644 benchmark/error/determine-specific-type.js Auto-merging lib/internal/errors.js [main 6873f4acda] fix lint Author: uzlopak Date: Mon Sep 18 06:04:59 2023 +0200 1 file changed, 3 insertions(+), 3 deletions(-) [main 1cdfaf7533] fix lint Author: uzlopak Date: Mon Sep 18 06:07:13 2023 +0200 1 file changed, 1 insertion(+), 1 deletion(-) Auto-merging lib/internal/errors.js error: commit 99f6196abb3604436614d0f18a406b14be2cc0b1 is a merge but no -m option was given. fatal: cherry-pick failed [main d4c38b51f3] fix function serialization Author: uzlopak Date: Mon Sep 18 19:00:20 2023 +0200 2 files changed, 34 insertions(+), 5 deletions(-) ✘ Failed to apply patcheshttps://github.com/nodejs/node/actions/runs/6306204198 |
3d4b956 to
d3bd644
Compare
Commit Queue failed- Loading data for nodejs/node/pull/49696 ✔ Done loading data for nodejs/node/pull/49696 ----------------------------------- PR info ------------------------------------ Title errors: improve performance of determineSpecificType (#49696) Author Aras Abbasi (@Uzlopak) Branch Uzlopak:improve-determine-specific-type -> nodejs:main Labels errors, author ready, needs-ci, needs-benchmark-ci, commit-queue-squash Commits 1 - errors: improve performance of determine-specific-type Committers 1 - uzlopak PR-URL: https://github.com/nodejs/node/pull/49696 Reviewed-By: Yagiz Nizipli Reviewed-By: Moshe Atlow ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/49696 Reviewed-By: Yagiz Nizipli Reviewed-By: Moshe Atlow -------------------------------------------------------------------------------- ℹ This PR was created on Mon, 18 Sep 2023 03:57:53 GMT ✔ Approvals: 2 ✔ - Yagiz Nizipli (@anonrig) (TSC): https://github.com/nodejs/node/pull/49696#pullrequestreview-1649996712 ✔ - Moshe Atlow (@MoLow) (TSC): https://github.com/nodejs/node/pull/49696#pullrequestreview-1636924932 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2023-09-29T11:35:22Z: https://ci.nodejs.org/job/node-test-pull-request/54367/ ℹ Last Benchmark CI on 2023-09-26T00:02:28Z: https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/1420/ - Querying data for job/node-test-pull-request/54367/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ No git cherry-pick in progress ✔ No git am in progress ✔ No git rebase in progress -------------------------------------------------------------------------------- - Bringing origin/main up to date... From https://github.com/nodejs/node * branch main -> FETCH_HEAD ✔ origin/main is now up-to-date - Downloading patch for 49696 From https://github.com/nodejs/node * branch refs/pull/49696/merge -> FETCH_HEAD ✔ Fetched commits as 51f4ff245018..d3bd644908c9 -------------------------------------------------------------------------------- error: cherry-pick is already in progress hint: try "git cherry-pick (--continue | --abort | --quit)" fatal: cherry-pick failed ✘ Failed to apply patcheshttps://github.com/nodejs/node/actions/runs/6359670729 |
|
Landed in 0ee9c83 |
PR-URL: nodejs#49696 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Moshe Atlow <[email protected]>
PR-URL: nodejs#49696 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Moshe Atlow <[email protected]>
PR-URL: #49696 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Moshe Atlow <[email protected]>
PR-URL: nodejs#49696 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Moshe Atlow <[email protected]>
This PR improves the function determineSpecificType in errors.js.
Also fixes a bug, where a string would be sliced without the single tick at the end of the string.
Added unit tests. Added benchmarks based on unit tests.
main:
PR: