Stream: git-wasmtime

Topic: wasmtime / PR #13932 Add configurable costs for variable-...


view this post on Zulip Wasmtime GitHub notifications bot (Jul 22 2026 at 11:40):

d-sonuga opened PR #13932 from d-sonuga:var-cost-op to bytecodealliance:main:

Closes https://github.com/bytecodealliance/wasmtime/issues/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.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 22 2026 at 11:40):

d-sonuga requested cfallin for a review on PR #13932.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 22 2026 at 11:40):

d-sonuga requested wasmtime-compiler-reviewers for a review on PR #13932.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 22 2026 at 11:40):

d-sonuga requested wasmtime-core-reviewers for a review on PR #13932.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 22 2026 at 12:15):

d-sonuga updated PR #13932.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 22 2026 at 14:25):

github-actions[bot] added the label wasmtime:api on PR #13932.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 22 2026 at 14:25):

github-actions[bot] added the label wasmtime:config on PR #13932.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 22 2026 at 15:20):

github-actions[bot] commented on PR #13932:

Label Messager: wasmtime:config

It looks like you are changing Wasmtime's configuration options. Make sure to
complete this check list:

[fuzzing-config]: https://github.com/bytecodealliance/wasmtime/blob/ca0e8d0a1d8cefc0496dba2f77a670571d8fdcab/crates/fuzzing/src/generators.rs#L182-L194
[fuzzing-docs]: https://docs.wasmtime.dev/contributing-fuzzing.html


<details>

To modify this label's message, edit the <code>.github/label-messager/wasmtime-config.md</code> file.

To add new label messages or remove existing label messages, edit the
<code>.github/label-messager.json</code> configuration file.

Learn more.

</details>

view this post on Zulip Wasmtime GitHub notifications bot (Jul 27 2026 at 19:20):

:thumbs_up: cfallin submitted PR review:

This looks reasonable overall to me (and sorry for the delay in reviewing) -- just a few comments below. Thanks!

view this post on Zulip Wasmtime GitHub notifications bot (Jul 27 2026 at 19:20):

:speech_balloon: cfallin created PR review comment:

Is this drop necessary? It seems like lifetime inference should do the right thing here...

view this post on Zulip Wasmtime GitHub notifications bot (Jul 27 2026 at 19:20):

:speech_balloon: cfallin created PR review comment:

It looks like this single call to translate_entity_fill is more or less what translate_table_fill does -- any reason to remove the abstraction layer here?

view this post on Zulip Wasmtime GitHub notifications bot (Jul 28 2026 at 10:35):

d-sonuga updated PR #13932.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 28 2026 at 10:38):

:memo: d-sonuga submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 28 2026 at 10:38):

:speech_balloon: d-sonuga created PR review comment:

Right, it's not. I've removed it.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 28 2026 at 10:43):

:memo: d-sonuga submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 28 2026 at 10:43):

:speech_balloon: d-sonuga created PR review comment:

translate_entity_fill now takes a cost per element. translate_table_fill now always calls it with the configured cost for table.fill per element. But table.grow has its own separate cost per element so it calls translate_entity_fill directly.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 28 2026 at 15:01):

:memo: cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 28 2026 at 15:01):

:speech_balloon: cfallin created PR review comment:

Ah, right, missed that -- thanks!

view this post on Zulip Wasmtime GitHub notifications bot (Jul 28 2026 at 15:01):

cfallin added PR #13932 Add configurable costs for variable-work operators (#13931) to the merge queue

view this post on Zulip Wasmtime GitHub notifications bot (Jul 28 2026 at 15:27):

github-merge-queue[bot] removed PR #13932 Add configurable costs for variable-work operators (#13931) from the merge queue


Last updated: Jul 29 2026 at 05:03 UTC