Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
stream: use bit fields for construct/destroy#50408
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: use bit fields for construct/destroy #50408
Uh oh!
There was an error while loading. Please reload this page.
Conversation
nodejs-github-bot commented Oct 26, 2023 • edited by ronag
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by ronag
Uh oh!
There was an error while loading. Please reload this page.
Review requested:
|
ronag commented Oct 26, 2023
6a5c0d6 to 3bf4eafCompare3bf4eaf to 02e3f43Compare02e3f43 to 74712a7Compare
mcollina left a comment
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
nodejs-github-bot commented Oct 26, 2023
| constkObjectMode=1<<0; | ||
| constkErrorEmitted=1<<1; | ||
| constkAutoDestroy=1<<2; | ||
| constkEmitClose=1<<3; | ||
| constkDestroyed=1<<4; | ||
| constkClosed=1<<5; | ||
| constkCloseEmitted=1<<6; | ||
| constkErrored=1<<7; | ||
| constkConstructed=1<<8; |
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.
How can we enforce that readable/writable stream will not have a bit state with the same position?
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.
Not sure. Suggestions?
Uh oh!
There was an error while loading. Please reload this page.
74712a7 to 763eaa1Compare763eaa1 to cea0fb4Comparenodejs-github-bot commented Oct 27, 2023
nodejs-github-bot commented Oct 27, 2023
anonrig commented Oct 27, 2023
@ronag If the motivation of this change is performance, can you share the benchmarks? |
ronag commented Oct 27, 2023
There is a CI benchmark |
nodejs-github-bot commented Oct 28, 2023
Landed in 4c3dde9 |
PR-URL: nodejs#50408 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Raz Luvaton <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
PR-URL: #50408 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Raz Luvaton <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
PR-URL: #50408 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Raz Luvaton <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
No description provided.