-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
flutter/engine
#46388Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work liste: wasmIssues related to the wasm build of Flutter Web.Issues related to the wasm build of Flutter Web.e: web_skwasmSkwasm rendering backend for webSkwasm rendering backend for webteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team
Description
Skwasm uses WebAssembly.Function in order to export a callback to the skwasm module. This is unfortunate for several reasons:
- This creates a needless Wasm Function -> JS Function -> Wasm Function layering that is probably slow
- It creates a dependency on the type reflection proposal, which we'd like to avoid.
The main reason I can't just export the callback directly is because we need access to the Wasm types indart:_wasmin order to declare the proper signatures and also create a wasm function reference out of a dart function. I'll need to look into how we can give the flutter engine specifically access to thedart:_wasmlibrary.
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work liste: wasmIssues related to the wasm build of Flutter Web.Issues related to the wasm build of Flutter Web.e: web_skwasmSkwasm rendering backend for webSkwasm rendering backend for webteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team