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

feat(core): add Deno.core.writeAll(rid, chunk) #16228

Merged
merged 2 commits into from Oct 10, 2022

Conversation

lucacasonato
Copy link
Member

@lucacasonato lucacasonato commented Oct 9, 2022

This commit adds a new op_write_all to core that allows writing an entire chunk in a single async op call. Internally this calls Resource::write_all.

The writableStreamForRid has been moved to 06_streams.js now, and uses this new op. Various other code paths now also use this new op.

Closes #16227

This commit adds a new op_write_all to core that allows writing an
entire chunk in a single async op call. Internally this calls
`Resource::write_all`.

The `writableStreamForRid` has been moved to `06_streams.js` now, and
uses this new op. Various other code paths now also use this new op.
Copy link
Member

@littledivy littledivy left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@lucacasonato lucacasonato merged commit 1ab3691 into denoland:main Oct 10, 2022
@lucacasonato lucacasonato deleted the writable_branding branch October 10, 2022 08:28
bartlomieju pushed a commit that referenced this pull request Oct 17, 2022
This commit adds a new op_write_all to core that allows writing an
entire chunk in a single async op call. Internally this calls
`Resource::write_all`.

The `writableStreamForRid` has been moved to `06_streams.js` now, and
uses this new op. Various other code paths now also use this new op.

Closes #16227
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.

Optimize internal JS->Rust writes using op_write_all
2 participants