-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
fix(fs): WriteStream
pending write fastpath
#16856
Merged
+7,037
−247
Merged
Changes from 3 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
6ef67d3
dont write out of order
dylan-conway dc04802
update
dylan-conway 21a4816
update
dylan-conway ce66af7
fixup
dylan-conway b8ff702
one more
dylan-conway 135c13b
auto flush
dylan-conway 07feacb
progress
dylan-conway 9086433
buffered stream
dylan-conway 08e8588
missing onWrite
dylan-conway e80764b
Merge branch 'main' into dylan/fix-pending-write
dylan-conway 991871a
fix windows zig build
dylan-conway 3ff9aa2
update ref
dylan-conway 1242201
clear capacity
dylan-conway a21c44c
test
dylan-conway 5c13864
fix windows build
dylan-conway 7dce37a
Update src/bun.js/webcore/streams.zig
dylan-conway d33699b
runPending update
dylan-conway 07b1dfb
mini eventloop
dylan-conway 17b5d04
stderr
dylan-conway 6c1520c
update
dylan-conway d34465b
Don't spin loop
Jarred-Sumner a707cd9
Update sys.zig
Jarred-Sumner 3aa413c
Update streams.zig
Jarred-Sumner 4040d9e
fix
Jarred-Sumner 11e477c
Update sys.zig
Jarred-Sumner 3d2bdcf
Update sys.zig
Jarred-Sumner ee815bd
Match node's behavior with force sync
Jarred-Sumner 0f410dd
Update streams.zig
Jarred-Sumner d561ea3
Ensure we actually set blocking
Jarred-Sumner 1a6181b
Workaround for zig std lib decision
Jarred-Sumner b397a20
Update PipeWriter.zig
Jarred-Sumner 0f36adb
Delete the function that is labeled as not being correct
Jarred-Sumner 4309c75
Update tty.ts
Jarred-Sumner c87cb34
update
dylan-conway 5401b5f
update
dylan-conway f9d5d91
write fast
dylan-conway 6bef911
oops
dylan-conway 5690100
update
dylan-conway f6b96ce
Merge branch 'main' into dylan/fix-pending-write
dylan-conway fe2ae42
block
dylan-conway 2de9cc2
fix it!!
dylan-conway 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.
should be configurable, though it doesn't have to block this PR.
node:fs streams have this option. we can add an options argument into Bun.file().writer()
https://nodejs.org/api/fs.html#filehandlecreatewritestreamoptions