Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Wire up DOM-only instructions #62096

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

crisbeto
Copy link
Member

These changes update the compiler to produce DOM-only instructions for the cases where it can safely detect that the component isn't using any directives. It also fixes that local references didn't work properly for the DOM-only instructions.

crisbeto added 3 commits June 17, 2025 10:15
Updates the `js-web-frameworks` and `largetable` benchmarks to use standalone which helps us benchmark the DOM-only instructions.
…ions

Fixes that local references weren't working correctly in DOM-only instructions.
Makes it possible for the compiler to reference DOM-only instructions.
@crisbeto crisbeto added action: review The PR is still awaiting reviews from at least one requested reviewer target: minor This PR is targeted for the next minor release labels Jun 17, 2025
@angular-robot angular-robot bot added area: build & ci Related the build and CI infrastructure of the project area: compiler Issues related to `ngc`, Angular's template compiler area: core Issues related to the framework runtime labels Jun 17, 2025
@ngbot ngbot bot added this to the Backlog milestone Jun 17, 2025
@crisbeto crisbeto force-pushed the dom-only-instructions branch from 72e0b4c to 8cf6ff6 Compare June 17, 2025 09:05
@crisbeto crisbeto marked this pull request as ready for review June 17, 2025 09:52
@crisbeto crisbeto added the action: global presubmit The PR is in need of a google3 global presubmit label Jun 17, 2025
@crisbeto crisbeto requested a review from devversion June 17, 2025 09:55
crisbeto added 3 commits June 17, 2025 14:58
Adds a field to the directive's metadata tracking whether it has directive dependencies. Knowing this will allow the pipeline to decide whether to produce DOM-only or full instructions.
Reworks the compiler so that it produces DOM-only instructions and updates the relevant tests.
Block templates can't have directives so we can always generate them as DOM-only.
@crisbeto crisbeto force-pushed the dom-only-instructions branch from 8cf6ff6 to e6f95af Compare June 17, 2025 12:59
@crisbeto crisbeto removed the action: global presubmit The PR is in need of a google3 global presubmit label Jun 18, 2025
@crisbeto
Copy link
Member Author

Passing TGP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: review The PR is still awaiting reviews from at least one requested reviewer area: build & ci Related the build and CI infrastructure of the project area: compiler Issues related to `ngc`, Angular's template compiler area: core Issues related to the framework runtime target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant