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 non public methods from preserved metadata #1442

Merged
merged 5 commits into from
Jan 18, 2024

Conversation

Sergio0694
Copy link
Member

This PR stops preserving reflection metadata for non public methods of helper types, given that they're:

  1. All public anyway (from the generated projections, or from internal helpers that have been updated accordingly)
  2. All other code was also just using PublicMethods as data flow annotations (which also produced warnings)

Also including a couple of very minor tweaks to some delegate creations, while at it.

@Sergio0694 Sergio0694 force-pushed the user/sergiopedri/reduce-preserved-metadata branch 3 times, most recently from 24b86a0 to a9f131f Compare January 14, 2024 01:20
@Sergio0694
Copy link
Member Author

Saves ~25 KB in a minimal WinRT sample (4225 KB -> 4200 KB):

image

@Sergio0694 Sergio0694 force-pushed the user/sergiopedri/reduce-preserved-metadata branch from a9f131f to 92e42b4 Compare January 18, 2024 00:46
@Sergio0694 Sergio0694 merged commit 0dd0515 into staging/AOT Jan 18, 2024
9 checks passed
@Sergio0694 Sergio0694 deleted the user/sergiopedri/reduce-preserved-metadata branch January 18, 2024 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants