GeezerVison is showing github.com — lib: restate the code to use primordials by PoojaDurgad · Pull Request #36552 · nodejs/node
Conversation
PoojaDurgad
commented
Dec 17, 2020
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Checklist
-
make -j4 test (UNIX), or vcbuild test (Windows) passes
- tests and/or benchmarks are included
- documentation is changed or added
- commit message follows commit guidelines
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
bricss reacted with thumbs up emoji
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also replace those please:
|
if (!octalReg.test(value)) { |
|
(typeof port === 'string' && port.trim().length === 0) || |
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
PoojaDurgad
commented
Dec 18, 2020
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
@aduh95 - yes, I modified the changes. PTAL
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Commit message should indicate where we are using more primordials. Maybe this?
lib: use more primordials in shared validators
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Removed author ready label. It should not be added until a full CI is started.
|
PoojaDurgad reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Benchmark Cl : https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/765/
It looks like the benchmark is for assert which is the default in the Jenkins interface. I could be wrong, but I don't think that's the benchmark we want here. I don't believe that uses the internal validators. I'm not sure what benchmark would be impacted by this code, but benchmark/util/type-check.js is worth a lock. If it is a relevant benchmark, then change assert to util in the Jenkins form and put type-check in the filter field.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM if no benchmark or CI issues.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
PoojaDurgad
commented
Dec 21, 2020
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Benchmark result : https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/782/console
confidence improvement accuracy (*) (**) (***)
14:31:32 util/type-check.js n=100000 argument='false-object' version='js' type='ArrayBufferView' -2.78 % ±5.30% ±7.08% ±9.28%
14:31:32 util/type-check.js n=100000 argument='false-object' version='js' type='TypedArray' -1.37 % ±3.50% ±4.66% ±6.07%
14:31:32 util/type-check.js n=100000 argument='false-object' version='js' type='Uint8Array' * 6.74 % ±5.52% ±7.37% ±9.66%
14:31:32 util/type-check.js n=100000 argument='false-object' version='native' type='ArrayBufferView' 3.49 % ±4.72% ±6.28% ±8.18%
14:31:32 util/type-check.js n=100000 argument='false-object' version='native' type='TypedArray' 0.36 % ±4.63% ±6.15% ±8.01%
14:31:32 util/type-check.js n=100000 argument='false-object' version='native' type='Uint8Array' -2.16 % ±4.36% ±5.80% ±7.55%
14:31:32 util/type-check.js n=100000 argument='false-primitive' version='js' type='ArrayBufferView' -3.30 % ±5.65% ±7.52% ±9.79%
14:31:32 util/type-check.js n=100000 argument='false-primitive' version='js' type='TypedArray' -2.13 % ±4.46% ±5.94% ±7.73%
14:31:32 util/type-check.js n=100000 argument='false-primitive' version='js' type='Uint8Array' -1.96 % ±4.35% ±5.79% ±7.53%
14:31:32 util/type-check.js n=100000 argument='false-primitive' version='native' type='ArrayBufferView' -5.02 % ±6.94% ±9.23% ±12.02%
14:31:32 util/type-check.js n=100000 argument='false-primitive' version='native' type='TypedArray' 1.92 % ±5.01% ±6.67% ±8.69%
14:31:32 util/type-check.js n=100000 argument='false-primitive' version='native' type='Uint8Array' 4.72 % ±5.51% ±7.34% ±9.58%
14:31:32 util/type-check.js n=100000 argument='true' version='js' type='ArrayBufferView' -1.16 % ±5.77% ±7.69% ±10.03%
14:31:32 util/type-check.js n=100000 argument='true' version='js' type='TypedArray' 2.32 % ±6.53% ±8.69% ±11.33%
14:31:32 util/type-check.js n=100000 argument='true' version='js' type='Uint8Array' -0.87 % ±4.90% ±6.52% ±8.48%
14:31:32 util/type-check.js n=100000 argument='true' version='native' type='ArrayBufferView' -3.66 % ±4.93% ±6.56% ±8.53%
14:31:32 util/type-check.js n=100000 argument='true' version='native' type='TypedArray' 1.97 % ±4.33% ±5.77% ±7.53%
14:31:32 util/type-check.js n=100000 argument='true' version='native' type='Uint8Array' 0.84 % ±4.62% ±6.15% ±8.00%
14:31:32
14:31:32 Be aware that when doing many comparisons the risk of a false-positive
14:31:32 result increases. In this case there are 18 comparisons, you can thus
14:31:32 expect the following amount of false-positive results:
14:31:32 0.90 false positives, when considering a 5% risk acceptance (*, **, ***),
14:31:32 0.18 false positives, when considering a 1% risk acceptance (**, ***),
14:31:32 0.02 false positives, when considering a 0.1% risk acceptance (***)
is this performance result within allowable limits?
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
aduh95
added
author ready
PRs with CI started, the required approvals, and no outstanding review comments.
request-ci
Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review.
labels
Dec 22, 2020
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
aduh95
added
the
request-ci
Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review.
label
Dec 28, 2020
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Sep 13, 2022
This was referenced Sep 29, 2022
This was referenced Oct 5, 2022
This was referenced Oct 8, 2022
Reviewers
aduh95
aduh95 approved these changes
Trott
Trott approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
author ready
PRs with CI started, the required approvals, and no outstanding review comments.
lib / src
Issues and PRs involving general changes in the lib/ or src/ directories.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|