-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Owen/wasm gas meter #1792
Owen/wasm gas meter #1792
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
@yubing744 is attempting to deploy a commit to the Rooch Team on Vercel. A member of the Team first needs to authorize it. |
13ffef8
to
f5132fd
Compare
@jolestar help review. |
@steelgeek091 help review |
let gas_meter = Arc::new(Mutex::new(GasMeter::new(GAS_LIMIT))); | ||
|
||
// Create and configure the compiler | ||
let mut compiler_config = wasmer::Cranelift::default(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using wasmer-compiler-singlepass instead of cranelift will improve compilation speed, increasing it by up to 100 times in large file tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I'll test it.
state.push_operator(operator.clone()); | ||
} | ||
} | ||
Operator::CallIndirect { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some indirect calls that should not occur and should be intercepted at runtime.
4290c31
to
14c5e85
Compare
Summary
Implement WASM runtime gas metering through custom meter host function
owen/wasm-gas-meter