This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Replies: 2 comments 3 replies
-
It is not as easy as it seems. Depending on an execution engine specific implementation of gas metering is a dangerous thing. You will tie your consensus to an implementation detail. You will not be able to run contracts with different execution engines. It is still totally unclear if singlepass compilation brings benefits for contracts when considering compilation time. We are trying to delay this decision as much as possible. This is why injected gas metering is what we do for now. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I see there is work ongoing in #10298 to make wasmer singlepass a viable option.
I have not found any discussions on wasmer's metering feature though: https://docs.rs/wasmer-middleware-common/0.17.1/wasmer_middleware_common/metering/struct.Metering.html
It seems like it should be a substantial improvement due to avoiding host calls in the process of metering execution.
I found it from this useful NEAR discussion: https://gov.near.org/t/on-running-some-wasm-contracts-with-llvm-specifically-for-evm/2869/4
Just wanted to make sure those working on pallet-contracts are aware of it and maybe get some feedback in case it was already considered and rejected for some reason.
Beta Was this translation helpful? Give feedback.
All reactions