CosmWasm / wasmvm

Go bindings to the running cosmwasm contracts with wasmer
Apache License 2.0
173 stars 99 forks source link

Improve vtables code #482

Closed webmaster128 closed 9 months ago

webmaster128 commented 9 months ago

For the record, I am not really conviced that "vtable" is the best term here. Those are pretty much static function pointers that are the same functions for all instances. The functions itself are stored a Go module level variables, making them pretty much fixed per process. I was thinking about a more global approach getting the pointers from Go to Rust, but it would open all sorts of ordering questions. Since I don't think there is much to gain, I gave up the global approach.