-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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 bitmap in readable state #49745
Merged
nodejs-github-bot
merged 10 commits into
nodejs:main
from
benjamingr:bitmap-in-readable
Sep 24, 2023
Merged
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
1cea18d
stream: use bitmap in readable state
benjamingr e2d09e3
fixup! dont let copilot generate code
benjamingr f6a09c7
fixup! dont let copilot generate code
benjamingr e2e1f77
a bit more testing
benjamingr b14ba74
fixup! convert more to bitmap
benjamingr 5013d25
fixup!
benjamingr 4fa5f37
fixup! inverted f
benjamingr b848c8c
fixup! tests pass, run linter
benjamingr 90a48c4
fixup! Update lib/internal/streams/readable.js
benjamingr 3882ebd
fixup! Update lib/internal/streams/readable.js
benjamingr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
You save some booleans but now you need more memory to store these functions and a more complicated property descriptor.
I think this will use more memory than the older version
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.
@H4ad ideally we wouldn't need the functions but note these functions are stored once per all streams vs. once per stream on the prototype.
My next step is to diff with the systems analyzer
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.
The functions are on the prototype so they don't take extra memory. But I don't know how well V8 will inline these calls. Needs a benchmark run.
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.
Ideally I wouldn't want to use these functions and would prefer a static which is more obviously inlinable