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

Skip to content

perf(compiler-cli): reduce duplicate component style resolution #57502

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

Closed
wants to merge 1 commit into from

Conversation

clydin
Copy link
Member

@clydin clydin commented Aug 23, 2024

Previously, the component handler was processing and resolving stylesheets referenced via styleUrl/styleUrls multiple times when generating the compiler metadata for components. The style resource information collection for such styles has been further consolidated to avoid repeat resource loader resolve calls which potentially could be expensive. Further optimization is possible for the inline style case. However, inline styles here only require AST traversal and no potentially expensive external resolve calls.

@angular-robot angular-robot bot added the area: performance Issues related to performance label Aug 23, 2024
@ngbot ngbot bot added this to the Backlog milestone Aug 23, 2024
@clydin clydin force-pushed the compiler/style-resource-cleanup branch from bc49674 to 52574b4 Compare August 23, 2024 18:15
@clydin clydin added the target: major This PR is targeted for the next major release label Aug 23, 2024
@clydin clydin requested a review from JoostK August 23, 2024 19:32
@clydin clydin marked this pull request as ready for review August 23, 2024 19:32
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Aug 23, 2024
Previously, the component handler was processing and resolving stylesheets
referenced via `styleUrl`/`styleUrls` multiple times when generating the
compiler metadata for components. The style resource information collection
for such styles has been further consolidated to avoid repeat resource loader
resolve calls which potentially could be expensive. Further optimization is
possible for the inline style case. However, inline styles here only require
AST traversal and no potentially expensive external resolve calls.
@clydin clydin force-pushed the compiler/style-resource-cleanup branch from 52574b4 to 7da6ca4 Compare August 24, 2024 00:15
@clydin clydin added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Aug 26, 2024
@alxhub
Copy link
Member

alxhub commented Aug 26, 2024

This PR was merged into the repository by commit 4716c3b.

The changes were merged into the following branches: main

@alxhub alxhub closed this in 4716c3b Aug 26, 2024
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: performance Issues related to performance target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants