Skip to content

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 requested a review from manodasanW January 13, 2024 19:25
@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
@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.

3 participants