sunfishcode opened PR #13366 from sunfishcode:sunfishcode/lower-bytes to bytecodealliance:main:
Add a "component-model-bytes" feature which enables implementations of
ComponentTypeandLowerfor theBytestype, from thebytescrate.These will allow optimizing functions that return
list<u8>to returnBytesvalues without converting them toVec<u8>first.Zulip thread: #wasmtime > Optimizing `list<u8>` returns in hostcalls @ 💬
sunfishcode requested pchickey for a review on PR #13366.
sunfishcode requested wasmtime-core-reviewers for a review on PR #13366.
:thumbs_up: pchickey submitted PR review:
Thanks. This would be a nice optimization to apply to wasmtime-wasi-io by default, in a follow up PR.
:thumbs_up: pchickey submitted PR review:
Thanks. This would be a nice optimization to apply to wasmtime-wasi-io by default, in a follow up PR. As of now, it gets no CI testing, idk if we should add something for it in this PR or just count on it being tested via wasmtime-wasi-io in a follow up?
github-actions[bot] added the label wasmtime:api on PR #13366.
alexcrichton requested dicej for a review on PR #13366.
alexcrichton requested wasmtime-wasi-reviewers for a review on PR #13366.
alexcrichton requested fitzgen for a review on PR #13366.
alexcrichton requested wasmtime-default-reviewers for a review on PR #13366.
alexcrichton updated PR #13366.
alexcrichton updated PR #13366.
alexcrichton updated PR #13366.
alexcrichton commented on PR #13366:
@pchickey mind reviewing the changes I've pushed up here?
:thumbs_up: pchickey submitted PR review:
Tweaks and tests look good, thank you
alexcrichton added PR #13366 Add support for lowering directly from Bytes. to the merge queue
github-merge-queue[bot] removed PR #13366 Add support for lowering directly from Bytes. from the merge queue
alexcrichton updated PR #13366.
alexcrichton has enabled auto merge for PR #13366.
alexcrichton added PR #13366 Add support for lowering directly from Bytes. to the merge queue
:check: alexcrichton merged PR #13366.
alexcrichton removed PR #13366 Add support for lowering directly from Bytes. from the merge queue
Last updated: Jul 29 2026 at 05:03 UTC