bytecodealliance / wasmtime

A fast and secure runtime for WebAssembly
https://wasmtime.dev/
Apache License 2.0
14.81k stars 1.24k forks source link

Reduce the size of the wasp1 component adapter by 4.6k #8858

Closed bjorn3 closed 1 week ago

bjorn3 commented 1 week ago

This reduces the size of wasi_snapshot_preview1.command.wasm from 79625 bytes to 75029 bytes for a total win of 4596 bytes. Of this reduction enabling LTO is responsible for 3103 bytes, while enabling bulk-memory is responsible for 1493 bytes.

alexcrichton commented 1 week ago

Thanks!

bjorn3 commented 1 week ago

For future reference: https://bytecodealliance.zulipchat.com/#narrow/stream/219900-wasi/topic/wasi-preview1-component-adapter.20size