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

process: improve nextTick performance by apapirovski · Pull Request #27347 · nodejs/node · GitHub

/ node Public

process: improve nextTick performance - #27347

Closed
apapirovski wants to merge 1 commit into
nodejs:masterfrom
apapirovski:patch-next-tick-perf
Closed

process: improve nextTick performance#27347
apapirovski wants to merge 1 commit into
nodejs:masterfrom
apapirovski:patch-next-tick-perf

Conversation

apapirovski commented Apr 22, 2019
edited
Loading

Copy link
Copy Markdown
Contributor
  • No longer use symbols for asyncId & triggerAsyncId. This borrows from the seemingly abandoned PR at process: improve nextTick performance #25461 by @mscdex. (Credit provided in the commit but happy to also remove this portion of the code.)
  • No longer check process.exiting on each tick add.
  • Cleaner emitDestroy with try/finally.
  • No longer use Reflect.apply since it's slower.

CI: https://ci.nodejs.org/job/node-test-pull-request/22633/

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

Copy link
Copy Markdown
Collaborator

nodejs-github-bot added the process Issues and PRs related to the process subsystem. label Apr 22, 2019

This comment has been minimized.

apapirovski force-pushed the patch-next-tick-perf branch from 4e37387 to f5e1032 Compare April 22, 2019 18:57

Copy link
Copy Markdown
Collaborator

mscdex commented Apr 22, 2019
edited
Loading

Copy link
Copy Markdown
Contributor

FWIW my PR for improving nextTick performance isn't abandoned, I just haven't had time to revisit it yet.

Also, this PR is now exposing asyncId and triggerAsyncId on the object passed to the hook(s) more directly. I think we should be hiding those sorts of things from hooks, as I believe that may be why Symbols were used in the first place.

Copy link
Copy Markdown
Contributor Author

FWIW my PR for improving nextTick performance isn't abandoned, I just haven't had time to revisit it yet.

👍 will remove from here.

No longer check process.exiting on each tick add.
Cleaner emitDestroy with try/finally.
No longer use Reflect.apply since it's slower.
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

process Issues and PRs related to the process subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL