Skip to content
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

Omit static constructors when not needed #1900

Draft
wants to merge 2 commits into
base: staging/2.3
Choose a base branch
from

Conversation

Sergio0694
Copy link
Member

This PR removes calls to RuntimeHelpers.RunClassConstructor when definitely not needed.
Pretty much the same optimization we did in the XAML compiler.

@Sergio0694 Sergio0694 added performance Related to performance work authoring Related to authoring feature work trimming labels Jan 21, 2025
@Sergio0694 Sergio0694 requested a review from manodasanW January 21, 2025 02:43
@Sergio0694 Sergio0694 force-pushed the user/sergiopedri/trim-static-constructors branch from e4867a5 to 8061a31 Compare January 21, 2025 03:10
@Sergio0694 Sergio0694 marked this pull request as draft January 21, 2025 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
authoring Related to authoring feature work performance Related to performance work trimming
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant