Skip to content
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

feat(cu): indicate to loader whether or not to apply metering #1040

Closed
TillaTheHun0 opened this issue Oct 15, 2024 · 0 comments · Fixed by #1042
Closed

feat(cu): indicate to loader whether or not to apply metering #1040

TillaTheHun0 opened this issue Oct 15, 2024 · 0 comments · Fixed by #1042
Assignees
Labels
cu ao Compute Unit

Comments

@TillaTheHun0
Copy link
Member

Background

AoLoader overloads WebAssembly.compile and WebAssembly.compileStreaming in order to apply metering to wasm binaries. This is activated via passing a applyMetering flag in the importObject

Problem

The CU currently does not pass this flag

Solution

Add an environment variable to the CU to enable/disable metering. It should default to enabled.

@TillaTheHun0 TillaTheHun0 added the cu ao Compute Unit label Oct 15, 2024
@TillaTheHun0 TillaTheHun0 self-assigned this Oct 15, 2024
TillaTheHun0 added a commit that referenced this issue Oct 16, 2024
TillaTheHun0 added a commit that referenced this issue Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cu ao Compute Unit
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant