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

experiment: faster wasm streaming in Rust #21323

Closed
wants to merge 4 commits into from

Conversation

littledivy
Copy link
Member

@littledivy littledivy commented Nov 24, 2023

}

/* XXX: crashes here if module compilation fails */
wasm_streaming.finish();
Copy link
Contributor

Choose a reason for hiding this comment

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

Addressing this in WIP feature:

denoland/deno_core#350

value: v8::Local<v8::Value>,
mut wasm_streaming: v8::WasmStreaming,
) {
let (url, rid) = match compile_response(scope, value) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should make a call into JS here to do a branding check and extract the stream RID, as this could in theory be created w/a Response that is not sourced from fetch.

Copy link
Member Author

Choose a reason for hiding this comment

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

It would be mean having two wasm streaming callbacks. One in JS doing the brand check and one for streaming in Rust. I don't think the brand check is actually enforced by wpt.

@mmastrac
Copy link
Contributor

I like this approach, well done. Let me try to get the task spawner experiment working and we can see how they work together.

@bartlomieju
Copy link
Member

Closing because it's stale and we're tackling WASM imports. Feel free to reopen if you want to rebase and try to land it.

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.

3 participants