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-statsexecution 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
fitzgen requested alexcrichton for a review on PR #15208.
fitzgen removed the review request for wasmtime-compiler-reviewers from PR #15208.
fitzgen requested wasmtime-compiler-reviewers for a review on PR #15208.
fitzgen requested wasmtime-core-reviewers for a review on PR #15208.
fitzgen updated PR #15208.
:thumbs_up: alexcrichton submitted PR review.
:speech_balloon: alexcrichton created PR review comment:
Could this doc block get updated with the new
transfer_borrow_to_ownerbeing added?
: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 acomponent.rsit can define everything needed for components
fitzgen updated PR #15208.
fitzgen has enabled auto merge for PR #15208.
fitzgen added PR #15208 Inline to-owner borrow lends in sync-to-sync adapters to the merge queue.
github-merge-queue[bot] removed PR #15208 Inline to-owner borrow lends in sync-to-sync adapters from the merge queue.
fitzgen updated PR #15208.
fitzgen has enabled auto merge for PR #15208.
fitzgen added PR #15208 Inline to-owner borrow lends in sync-to-sync adapters to the merge queue.
:check: fitzgen merged PR #15208.
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