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

async_hooks: only set up hooks if used by addaleax · Pull Request #13177 · nodejs/node · GitHub

/ node Public

async_hooks: only set up hooks if used - #13177

Closed
addaleax wants to merge 1 commit into
nodejs:masterfrom
addaleax:async-hooks-lazy
Closed

async_hooks: only set up hooks if used#13177
addaleax wants to merge 1 commit into
nodejs:masterfrom
addaleax:async-hooks-lazy

Conversation

Copy link
Copy Markdown
Member

Splitting this out from #13000 to have it get reviewed on its own. I think it makes sense but I’d like some kind of confirmation. (Motivation was that setting up Promise hooks for async_wrap is likely to have some kind of noticeable performance impact, probably even once we have the internal fields, so we might not want to have that unconditionally.)

@nodejs/diagnostics

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

async_hooks

addaleax added the async_hooks Issues and PRs related to the async hooks subsystem. label May 23, 2017
addaleax added this to the 8.0.0 milestone May 23, 2017
nodejs-github-bot added the async_hooks Issues and PRs related to the async hooks subsystem. label May 23, 2017

Copy link
Copy Markdown
Contributor

AndreasMadsen left a comment
edited
Loading

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM. There are quite a few places where we require('async_hooks'), so this seems like a good optimization.

Copy link
Copy Markdown
Member Author

Landed in 410b141

addaleax closed this May 25, 2017
addaleax deleted the async-hooks-lazy branch May 25, 2017 16:21
addaleax added a commit that referenced this pull request May 25, 2017
PR-URL: #13177
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Andreas Madsen <amwebdk@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
jasnell pushed a commit that referenced this pull request May 25, 2017
PR-URL: #13177
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Andreas Madsen <amwebdk@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
jasnell pushed a commit that referenced this pull request May 28, 2017
PR-URL: #13177
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Andreas Madsen <amwebdk@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
jasnell mentioned this pull request May 28, 2017
gibfahn mentioned this pull request Jun 15, 2017
3 tasks

Copy link
Copy Markdown
Contributor

assuming don't land, let me know if it needs to be included for future async_hooks backport (in which case switch to lts-watch)

Copy link
Copy Markdown
Member Author

@MylesBorins I think we’d want to backport most of async_hooks as it is in v8.x/master if we do, not backport the individual changes, so dont-land seems fine to me, just with different semantics? (I am relabelling to lts-watch though, as requested)

Copy link
Copy Markdown
Member

I've removed the lts-watch from this PR and added it to the main AsyncHooks PR #12892.

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

async_hooks Issues and PRs related to the async hooks subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants


Back | FazBrowse Home | New Git URL