2 messages were moved here from #wit-bindgen > Storing state in `Guest` struct by Lann Martin.
Resources are passed by reference, which has a bit of bookkeeping overhead but should be "plenty fast" for most purposes. The tradeoff is that you can only do things with the resource by making method calls to the component (or the host) that owns the resource.
Last updated: Dec 06 2025 at 07:03 UTC