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

Seal IObjectReference.TryAs<T> method #1454

Merged
merged 3 commits into from
Jan 25, 2024

Conversation

Sergio0694
Copy link
Member

This PR seals IObjectReference.TryAs<T>, which was bloating the binary size due to combinatorial generics:

image

Should also be faster, given that the GVM dispatch isn't exactly the best.

@Sergio0694 Sergio0694 added performance Related to performance work trimming AOT labels Jan 19, 2024
@Sergio0694
Copy link
Member Author

Saves 186 KB on .NET 9! 🎉

image

@Sergio0694 Sergio0694 marked this pull request as ready for review January 19, 2024 19:46
@Sergio0694 Sergio0694 force-pushed the user/sergiopedri/remove-objref-gvm branch from a9bb6cb to f282beb Compare January 23, 2024 19:56
@Sergio0694 Sergio0694 force-pushed the user/sergiopedri/remove-objref-gvm branch from f282beb to e374b40 Compare January 24, 2024 22:31
@Sergio0694
Copy link
Member Author

Actually saves 253 KB now with the latest changes too! 🎉

image

@Sergio0694 Sergio0694 merged commit 1bfd692 into staging/AOT Jan 25, 2024
9 checks passed
@Sergio0694 Sergio0694 deleted the user/sergiopedri/remove-objref-gvm branch January 25, 2024 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AOT performance Related to performance work trimming
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants