Repository navigation
perf(transpile): default to the sync fast path, dedup core modules - #2598
Closed
vados-cosmonic wants to merge 5 commits into
Closed
vados-cosmonic wants to merge 5 commits into
vados-cosmonic wants to merge 5 commits into
Conversation
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.
Collaborator
Author
|
Superseded by #2597, which contains all five commits from this PR. The combined branch passed the default and opt-out fast-path checks and the repeated-core-module tests for both ES-module and factory output. |
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.
Two changes to the default output of
transpile:perfSyncFastPathnow defaults totrue, so calls of synchronous functions on eligible components skip creating a task. Components that are not eligible are unaffected.--no-perf-sync-fast-path(orperfSyncFastPath: false) restores a task for every call. The one documented difference, the message a guest sees when it catches a host throwingnullorundefined, now applies by default.