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

timers: refactor to use optional chaining by Lxxyx · Pull Request #36767 · nodejs/node · GitHub

/ node Public

timers: refactor to use optional chaining - #36767

Closed
Lxxyx wants to merge 1 commit into
nodejs:masterfrom
Lxxyx:timers-refactor-use-optional-chaining
Closed

timers: refactor to use optional chaining#36767
Lxxyx wants to merge 1 commit into
nodejs:masterfrom
Lxxyx:timers-refactor-use-optional-chaining

Conversation

Lxxyx commented Jan 4, 2021

Copy link
Copy Markdown
Member
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

nodejs-github-bot added the timers Issues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout. label Jan 4, 2021
aduh95 added the needs-benchmark-ci PR that need a benchmark CI run. label Jan 4, 2021

aduh95 commented Jan 5, 2021

Copy link
Copy Markdown
Contributor

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

No regressions or improvements
                                                              confidence improvement accuracy (*)    (**)   (***)
 timers/timers-cancel-pooled.js n=5000000                                    -0.96 %       ±9.53% ±12.68% ±16.51%
 timers/timers-cancel-unpooled.js direction='end' n=1000000                   4.08 %       ±7.54% ±10.04% ±13.07%
 timers/timers-cancel-unpooled.js direction='start' n=1000000                -2.81 %       ±5.86%  ±7.80% ±10.16%

Be aware that when doing many comparisons the risk of a false-positive
result increases. In this case there are 3 comparisons, you can thus
expect the following amount of false-positive results:
  0.15 false positives, when considering a   5% risk acceptance (*, **, ***),
  0.03 false positives, when considering a   1% risk acceptance (**, ***),
  0.00 false positives, when considering a 0.1% risk acceptance (***)

aduh95 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. and removed needs-benchmark-ci PR that need a benchmark CI run. labels Jan 5, 2021
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jan 5, 2021

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Lxxyx force-pushed the timers-refactor-use-optional-chaining branch from fbf05e0 to 738759a Compare January 8, 2021 11:33

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

jasnell pushed a commit that referenced this pull request Jan 9, 2021
PR-URL: #36767
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>

jasnell commented Jan 9, 2021

Copy link
Copy Markdown
Member

Landed in d8f535b

jasnell closed this Jan 9, 2021
Lxxyx deleted the timers-refactor-use-optional-chaining branch January 11, 2021 10:43
danielleadams pushed a commit that referenced this pull request Jan 12, 2021
PR-URL: #36767
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
danielleadams mentioned this pull request Jan 12, 2021

Copy link
Copy Markdown
Member

As part of #37937, I tracked down a regression introduced by this one.

With optional chaining:

Without optional chaining:

targos pushed a commit that referenced this pull request May 25, 2021
PR-URL: #36767
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@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. timers Issues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL