Uh oh!
There was an error while loading. Please reload this page.
lib: improve performance of validateStringArray and validateBooleanArray - #49756
Merged
nodejs-github-bot merged 1 commit intoOct 22, 2023
Merged
Conversation
mscdex
reviewed
Sep 21, 2023
Uh oh!
There was an error while loading. Please reload this page.
anonrig
commented
Sep 22, 2023
Member
Since you are creating a new benchmark suite, you need to also create the appropriate test for it. Similar to https://github.com/nodejs/node/blob/main/test/benchmark/test-bechmark-readline.js |
Uzlopak
commented
Sep 22, 2023
ContributorAuthor
anonrig
approved these changes
Sep 22, 2023
nodejs-github-bot
commented
Sep 22, 2023
Collaborator
20 tasks
anonrig
approved these changes
Sep 24, 2023
nodejs-github-bot
commented
Sep 25, 2023
Collaborator
trivikr
approved these changes
Sep 25, 2023
nodejs-github-bot
commented
Sep 25, 2023
Collaborator
nodejs-github-bot
commented
Sep 25, 2023
Collaborator
nodejs-github-bot
commented
Sep 25, 2023
Collaborator
nodejs-github-bot
commented
Sep 25, 2023
Collaborator
nodejs-github-bot
commented
Sep 26, 2023
Collaborator
21 tasks
Uzlopak
commented
Sep 27, 2023
ContributorAuthor
Can this please be merged? I think I improved the performance of parseFileMode and I would like to use the benchmark in this PR. functionparseFileMode(value,name,def){value??=def;if(typeofvalue==='string'){if(value===''){thrownewERR_INVALID_ARG_VALUE(name,value,modeDesc);}letresult=0;for(leti=0;i<value.length;++i){result<<=3;switch(value[i]){case'7':
result+=7;break;case'6':
result+=6;break;case'5':
result+=5;break;case'4':
result+=4;break;case'3':
result+=3;break;case'2':
result+=2;break;case'1':
result+=1;break;case'0':
break;default:
thrownewERR_INVALID_ARG_VALUE(name,value,modeDesc);}}returnresult;}validateUint32(value,name);returnvalue;} |
nodejs-github-bot
commented
Sep 27, 2023
Collaborator
targos
commented
Sep 27, 2023
Member
It needs a benchmark run |
Uzlopak
commented
Sep 27, 2023
ContributorAuthor
nodejs-github-bot
commented
Oct 10, 2023
Collaborator
30 tasks
Uzlopak
commented
Oct 16, 2023
ContributorAuthor
The failing tests have to be unrelated. Can you retrigger the tests, please? or should i rebase, because the fixes for the failing tests is in master already? |
Uzlopak
commented
Oct 21, 2023
ContributorAuthor
nodejs-github-bot
commented
Oct 21, 2023
Collaborator
29 tasks
nodejs-github-bot
commented
Oct 22, 2023
Collaborator
nodejs-github-bot
commented
Oct 22, 2023
Collaborator
Uzlopak
commented
Oct 22, 2023
ContributorAuthor
nodejs-github-bot
commented
Oct 22, 2023
Collaborator
Commit Queue failed- Loading data for nodejs/node/pull/49756 ✔ Done loading data for nodejs/node/pull/49756 ----------------------------------- PR info ------------------------------------ Title lib: improve performance of validateStringArray and validateBooleanArray (#49756) Author Aras Abbasi (@Uzlopak) Branch Uzlopak:improve-perf-array-validators -> nodejs:main Labels performance, author ready, needs-ci, needs-benchmark-ci Commits 1 - lib: improve performance of validateStringArray and validateBooleanArray Committers 1 - uzlopak PR-URL: https://github.com/nodejs/node/pull/49756 Reviewed-By: Yagiz Nizipli Reviewed-By: Trivikram Kamat ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/49756 Reviewed-By: Yagiz Nizipli Reviewed-By: Trivikram Kamat -------------------------------------------------------------------------------- ⚠ Commits were pushed since the last approving review: ⚠ - lib: improve performance of validateStringArray and validateBooleanArray ℹ This PR was created on Thu, 21 Sep 2023 21:54:17 GMT ✔ Approvals: 2 ✔ - Yagiz Nizipli (@anonrig) (TSC): https://github.com/nodejs/node/pull/49756#pullrequestreview-1641142923 ✔ - Trivikram Kamat (@trivikr): https://github.com/nodejs/node/pull/49756#pullrequestreview-1641181220 ✔ Last GitHub CI successful ℹ Last Benchmark CI on 2023-09-27T13:36:16Z: https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/1423 ℹ Last Full PR CI on 2023-10-22T19:56:46Z: https://ci.nodejs.org/job/node-test-pull-request/55130/ - Querying data for job/node-test-pull-request/55130/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/6606164183 |
anonrig
approved these changes
Oct 22, 2023
Uzlopak
commented
Oct 22, 2023
ContributorAuthor
nodejs-github-bot
commented
Oct 22, 2023
Collaborator
Landed in a58ffad |
26 tasks
targos pushed a commit
that referenced
this pull request
Oct 23, 2023
PR-URL: #49756 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This was referenced Oct 24, 2023
targos pushed a commit
that referenced
this pull request
Nov 11, 2023
PR-URL: #49756 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Trivikram Kamat <trivikr.dev@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 freeto 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.
instead of calling the validateString/validateBoolean function, where we are forced to create strings, which we potentially dont need, we create the string only when needed.
Benchmark CI: https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/1423