bytecodealliance / bytecodealliance/wasm-tools
wit-dylib: Generate helper functions during lifting/lowering
Open
wit-dylib
- Dominant language
- Rust
- Stars
- 1.8k
- Forks
- 351
- Avg merge
- 16h 57m
- Merged PRs (30d)
- 38
Description
Right now each adapter generates one monolithic wasm function per world import and world export. This means that if a `list` is used many times, it'll have duplicated lowering/lifting code in many places. Should consider splitting out helpers to, for example, read `T` from linear memory (or write it) and delegate to those helpers instead. Some discussion [here](https://github.com/bytecodealliance/wasm-tools/pull/2304#pullrequestreview-3230168549) about this too.
Contributor guide
Assessment
This issue has not been assessed yet.