Skip to content

[wasm] we should use instantiateStreaming #102200

@kg

Description

@kg

We should try to use https://developer.mozilla.org/en-US/docs/WebAssembly/JavaScript_interface/instantiateStreaming_static to compile and instantiate the runtime WASM module in one step instead of two separate steps. Apparently if you do it in split stages like we're doing now, Safari has to make expensive temporary copies of data and buffer it up. From my profiles of Firefox it may also be beneficial to do instantiateStreaming there too.

This requires some complex internal changes to unify our separate stages into one stage.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions