Stream: git-wasmtime

Topic: wasmtime / issue #3110 C/++ API - Add ability to define f...


view this post on Zulip Wasmtime GitHub notifications bot (Jul 22 2021 at 17:12):

dshiell15 opened issue #3110:

Feature

Implement Linker::func_wrap() functionality to the C/C++ APIs to be able to instantiate all hostcall functions once within an application with short lived Stores.

Benefit

Brings C/C++ APIs in alignment with Rust API, and would provided a significant performance benefit for applications with short lived Stores. For example, server applications which provide hostcalls to access request data. In my use case, I am using the C++ API and notice a large performance hit when registering even a single hostcall (via Linker::define()).

Implementation

I'm not sure what would be required to expose this functionality in the C/C++ API.

Alternatives

The main goal I would like to achieve would be to register all hostcalls once up front to avoid the overhead of registering all hostcalls for each Store context.

Thank you!

view this post on Zulip Wasmtime GitHub notifications bot (Jul 27 2021 at 23:56):

alexcrichton closed issue #3110:

Feature

Implement Linker::func_wrap() functionality to the C/C++ APIs to be able to instantiate all hostcall functions once within an application with short lived Stores.

Benefit

Brings C/C++ APIs in alignment with Rust API, and would provided a significant performance benefit for applications with short lived Stores. For example, server applications which provide hostcalls to access request data. In my use case, I am using the C++ API and notice a large performance hit when registering even a single hostcall (via Linker::define()).

Implementation

I'm not sure what would be required to expose this functionality in the C/C++ API.

Alternatives

The main goal I would like to achieve would be to register all hostcalls once up front to avoid the overhead of registering all hostcalls for each Store context.

Thank you!

view this post on Zulip Wasmtime GitHub notifications bot (Jul 29 2021 at 00:09):

dshiell15 commented on issue #3110:

Awesome!


Last updated: Nov 22 2024 at 16:03 UTC