Wasm Compact Import Section
- Category
- WebAssembly
- Type
- Chromium catches up
- Status
- Proposed (Chrome Proposed)
- Intent stage
- None
Summary
Adds two compact binary encoding formats to the WebAssembly import section to group multiple imports under a single module name and shared type signature. Currently, every imported item must redundantly repeat its module name and type declaration, leading to avoidable binary bloat and parsing overhead for modules with many imports (such as JavaScript String Builtins or WebGL bindings). This feature enables compilers to eliminate these duplicate strings and type definitions, reducing Wasm file sizes and module compilation time on the web.
Standards & signals
- Firefox: No signal
- Safari: No signal
- Web developers: No signals
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=wasm-compact-import-section
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Wasm%20Compact%20Import%20Section
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Wasm%20Compact%20Import%20Section
- Baseline status: https://webstatus.dev/?q=Wasm%20Compact%20Import%20Section