-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Conversation
a2cd837
to
5ad1869
Compare
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 we are not going to emit 'close' then there is no reason to schedule it.
5ad1869
to
3489245
Compare
Landed in 033037c |
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>
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. |
@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. |
@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! |
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
quick ping re: backport |
@MylesBorins: This was further refactored. I don't believe this is relevant anymore for backport. |
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>
If we are not going to emit
'close'
then there is no reason to schedule it.Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes