Repository navigation
perf(transpile): share export adapters and deduplicate core modules - #2597
Merged
vados-cosmonic merged 30 commits intoDec 2, 2026
Merged
vados-cosmonic merged 30 commits into
vados-cosmonic merged 30 commits into
Conversation
feat(runtime): share synchronous export task lifecycles feat(bindgen): target shared adapters and infer JSPI requirements perf(bindgen): preserve checked fast paths for pinned runtimes
test(runtime): exercise installed adapters and measure export growth test(transpile): map the sync export runner in the browser harness
A composition can embed the same core module more than once. Each copy after the first now reuses the first copy's compiled module instead of being emitted as a separate file and compiled again.
perfSyncFastPath is now on unless it is set to false. Calls of synchronous functions on eligible components skip creating a task.
`jco transpile` now uses the sync fast path unless `--no-perf-sync-fast-path` is given, whatever the default of the jco-transpile release it uses.
Apply the runtime and benchmark style checks to the shared adapter changes.
vados-cosmonic
force-pushed
the
perf/runtime-dedupe-call-entry
branch
from
December 2, 2026 11:47
ef28c7a to
54b3284
Compare
vados-cosmonic
marked this pull request as ready for review
December 2, 2026 14:08
Merged
via the queue into
bytecodealliance:main
with commit Dec 2, 2026
1f547c7
146 of 148 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These changes reduce the JavaScript generated for component calls and the Wasm emitted for repeated core modules. The shared-runtime work was inspired by wcjs. This PR includes the five commits from #2598.
--no-perf-sync-fast-pathorperfSyncFastPath: falseto create a task for every call. The performance guide documents the observable difference when a guest catches a host throwingnullorundefined.createSyncExportRunner. Async exports use a static descriptor withstartExportTask. Lift/lower metadata is memoized per component instance.--cm-runtime-target current|compatibleselects the provider operations used by generated bindings. Custom providers can use the baseline API-v1 contract. The installed-package tests exercise both provider contracts and the benchmark measures the cost of adding exports.jspiRequirement. Generated bindings check for the required APIs, and the CLI warns when the component needs JSPI and it was not requested.