wasmtime icon indicating copy to clipboard operation
wasmtime copied to clipboard

Pooling-allocator C-api support?

Open rahulchaphalkar opened this issue 2 years ago • 2 comments

Hi, is there a c-api to enable pooling-allocator ( change InstanceAllocationStrategy)? I checked in wasmtime-c-api but could not find one. Default instance config seems to be OnDemand so wondering how do i change that to Pooling. I have built with the required feature flags. https://github.com/bytecodealliance/wasmtime/blob/3e35c8f98a1efb7c2bc0a3234bca3c23a30293a9/crates/wasmtime/src/config.rs#L178

rahulchaphalkar avatar Oct 20 '22 20:10 rahulchaphalkar

At this time this isn't implemented but not for any inherent reason, it should be fine to add API bindings for the Config-related fields here. Would you be interested in sending such a PR?

alexcrichton avatar Oct 20 '22 21:10 alexcrichton

Thank you. I will take a look at the changes that are required.

rahulchaphalkar avatar Oct 21 '22 16:10 rahulchaphalkar