Stream: git-wasmtime

Topic: wasmtime / PR #15208 Inline to-owner borrow lends in sync...


view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2026 at 19:28):

fitzgen opened PR #15208 from fitzgen:inline-lazy-lenders to bytecodealliance:main:

The inline path is guarded on this frame's deferred thread still being the current one. Everything else routes to the libcall.

The cm-online-stats execution phase is ~1.5x faster cycles (~1.65x faster instructions retired); compile time is ~1.05x slower on instructions retired (insignificant on cycles) due to generating more CLIF to compile.

execution :: instructions-retired :: cm-online-stats

    inline is 1.65391x to 1.65393x faster than main!
    (confidence = 99%, p < 0.0001)

    ┌───────────┬───────────┬──────────────┬──────────────┬────────┬────────┐
    │ Min       │ Max       │ Mean         │ Median       │ Noise  │ Engine │
    ├───────────┼───────────┼──────────────┼──────────────┼────────┼────────┤
    │ 268911896 │ 269053787 │ 268921646.06 │ 268918128.00 │ 0.004% │ inline │
    ├───────────┼───────────┼──────────────┼──────────────┼────────┼────────┤
    │ 444758070 │ 445076633 │ 444774382.05 │ 444767619.50 │ 0.003% │ main   │
    └───────────┴───────────┴──────────────┴──────────────┴────────┴────────┘

execution :: cycles :: cm-online-stats

    inline is 1.50x to 1.51x faster than main!
    (confidence = 99%, p < 0.0001)

    ┌──────────┬──────────┬─────────────┬─────────────┬────────┬────────┐
    │ Min      │ Max      │ Mean        │ Median      │ Noise  │ Engine │
    ├──────────┼──────────┼─────────────┼─────────────┼────────┼────────┤
    │ 58124873 │ 60635411 │ 58508206.26 │ 58496845.50 │ 0.247% │ inline │
    ├──────────┼──────────┼─────────────┼─────────────┼────────┼────────┤
    │ 87254597 │ 98889757 │ 88122971.82 │ 88000184.00 │ 0.473% │ main   │
    └──────────┴──────────┴─────────────┴─────────────┴────────┴────────┘

compilation :: instructions-retired :: cm-online-stats

    main is 1.04x to 1.06x faster than inline!
    (confidence = 99%, p < 0.0001)

    ┌──────────┬──────────┬─────────────┬─────────────┬────────┬────────┐
    │ Min      │ Max      │ Mean        │ Median      │ Noise  │ Engine │
    ├──────────┼──────────┼─────────────┼─────────────┼────────┼────────┤
    │ 79022304 │ 93662916 │ 83869884.51 │ 83464567.50 │ 3.500% │ inline │
    ├──────────┼──────────┼─────────────┼─────────────┼────────┼────────┤
    │ 74332331 │ 91371747 │ 79585458.47 │ 79242331.50 │ 2.550% │ main   │
    └──────────┴──────────┴─────────────┴─────────────┴────────┴────────┘

compilation :: cycles :: cm-online-stats

    No difference in performance.

    ┌──────────┬───────────┬─────────────┬─────────────┬─────────┬────────┐
    │ Min      │ Max       │ Mean        │ Median      │ Noise   │ Engine │
    ├──────────┼───────────┼─────────────┼─────────────┼─────────┼────────┤
    │ 38069903 │ 102068800 │ 55714247.91 │ 55621912.50 │ 15.759% │ inline │
    ├──────────┼───────────┼─────────────┼─────────────┼─────────┼────────┤
    │ 36253543 │ 138537543 │ 56735080.33 │ 53887331.50 │ 15.104% │ main   │
    └──────────┴───────────┴─────────────┴─────────────┴─────────┴────────┘

Fixes https://github.com/bytecodealliance/wasmtime/issues/15192

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2026 at 19:28):

fitzgen requested alexcrichton for a review on PR #15208.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2026 at 19:28):

fitzgen removed the review request for wasmtime-compiler-reviewers from PR #15208.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2026 at 19:28):

fitzgen requested wasmtime-compiler-reviewers for a review on PR #15208.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2026 at 19:28):

fitzgen requested wasmtime-core-reviewers for a review on PR #15208.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2026 at 20:46):

fitzgen updated PR #15208.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2026 at 21:04):

:thumbs_up: alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2026 at 21:04):

:speech_balloon: alexcrichton created PR review comment:

Could this doc block get updated with the new transfer_borrow_to_owner being added?

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2026 at 21:04):

:speech_balloon: alexcrichton created PR review comment:

This might be best modeled as something like Component(FactComponentIntrinsic) so there's just one #[cfg] on the component case and that way somewhere in a component.rs it can define everything needed for components

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

fitzgen updated PR #15208.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2026 at 22:27):

fitzgen has enabled auto merge for PR #15208.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2026 at 22:36):

fitzgen added PR #15208 Inline to-owner borrow lends in sync-to-sync adapters to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2026 at 22:59):

github-merge-queue[bot] removed PR #15208 Inline to-owner borrow lends in sync-to-sync adapters from the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2026 at 23:29):

fitzgen updated PR #15208.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2026 at 23:29):

fitzgen has enabled auto merge for PR #15208.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2026 at 23:37):

fitzgen added PR #15208 Inline to-owner borrow lends in sync-to-sync adapters to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 10 2026 at 00:00):

:check: fitzgen merged PR #15208.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 10 2026 at 00:00):

fitzgen removed PR #15208 Inline to-owner borrow lends in sync-to-sync adapters from the merge queue.


Last updated: Nov 19 2026 at 20:05 UTC