Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stream: avoid unecessary nextTick #29194

Closed
wants to merge 1 commit into from

Conversation

ronag
Copy link
Member

@ronag ronag commented Aug 18, 2019

If we are not going to emit 'close' then there is no reason to schedule it.

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

@ronag ronag changed the title stream: remove unecessary nextTick stream: avoid unecessary nextTick Aug 18, 2019
@ronag ronag force-pushed the stream-emit-close branch 2 times, most recently from a2cd837 to 5ad1869 Compare August 18, 2019 16:11
@nodejs-github-bot
Copy link
Collaborator

@BridgeAR BridgeAR requested a review from mcollina August 20, 2019 15:23
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

LGTM

If we are not going to emit 'close' then there is no reason to
schedule it.
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@Trott
Copy link
Member

Trott commented Aug 23, 2019

Landed in 033037c

@Trott Trott closed this Aug 23, 2019
Trott pushed a commit that referenced this pull request Aug 23, 2019
If we are not going to emit 'close' then there is no reason to
schedule it.

PR-URL: #29194
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@BridgeAR
Copy link
Member

BridgeAR commented Sep 3, 2019

Should this be backported to at least v12.x? If so, this requires a manual backport due to multiple conflicts. Here is a guide how to create manual backports.

@ronag
Copy link
Member Author

ronag commented Sep 4, 2019

@BridgeAR I'm a new to the whole backporting thing. I'm more than happy to try and prepare it.

However, should we really be backporting this? It doesn't actually fix any bug and is just a minor cleanup and perf improvement.

@BridgeAR
Copy link
Member

@ronag backporting is often not about the actual fix but to reduce followup conflicts. It would be great if you could give it a try!

ronag added a commit to nxtedition/node that referenced this pull request Oct 9, 2019
If we are not going to emit 'close' then there is no reason to
schedule it.

PR-URL: nodejs#29194
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Backport-PR-URL: nodejs#29691
@MylesBorins
Copy link
Contributor

quick ping re: backport

@ronag
Copy link
Member Author

ronag commented Jan 10, 2020

@MylesBorins: This was further refactored. I don't believe this is relevant anymore for backport.

sxa pushed a commit to sxa/node that referenced this pull request Jan 24, 2020
If we are not going to emit 'close' then there is no reason to
schedule it.

PR-URL: nodejs#29194
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants