Add configurable costs for variable-work operators (#13931)#13932
Add configurable costs for variable-work operators (#13931)#13932d-sonuga wants to merge 1 commit into
Conversation
…13931) Previously, variable cost operators like `memory.fill` were charged a constant non-configurable amount of fuel per byte. This extends `OperatorCost` with a `VariableOperatorCost` table so embedders can configure costs for operators whose work depends on runtime operands. The resulting cost for these operands is: `flat operator cost + runtime units × configured cost per unit`.
Label Messager: wasmtime:configIt looks like you are changing Wasmtime's configuration options. Make sure to
DetailsTo modify this label's message, edit the To add new label messages or remove existing label messages, edit the |
Closes #13931.
Previously, variable cost operators like
memory.fillwere charged a constant non-configurable amount of fuel per byte. This extendsOperatorCostwith aVariableOperatorCosttable so embedders can configure costs for operators whose work depends on runtime operands.