Skip to content

Avoid LINQ expressions in getting GetService #100916

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

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

MichalStrehovsky
Copy link
Member

This makes ASP.NET 50 kB smaller with native AOT.

We don't even need this MethodInfo but it's created in the static constructor along with other things that are needed so can't get rid of it. Could move it to a different type to get it fully out of the way.

Note: this was previously grabbing MethodInfo of the lambda but that might have been unintentional.

This makes ASP.NET 50 kB smaller with native AOT.

We don't even need this `MethodInfo` but it's created in the static constructor along with other things that are needed so can't get rid of it. Could move it to a different type to get it fully out of the way.

Note: this was previously grabbing `MethodInfo` of the lambda but that might have been unintentional.
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-extensions-dependencyinjection
See info in area-owners.md if you want to be subscribed.

@MichalStrehovsky MichalStrehovsky merged commit 12418b9 into dotnet:main Apr 11, 2024
85 of 87 checks passed
@MichalStrehovsky MichalStrehovsky deleted the smallactivator branch April 11, 2024 22:32
matouskozak pushed a commit to matouskozak/runtime that referenced this pull request Apr 30, 2024
This makes ASP.NET 50 kB smaller with native AOT.

We don't even need this `MethodInfo` but it's created in the static constructor along with other things that are needed so can't get rid of it. Could move it to a different type to get it fully out of the way.

Note: this was previously grabbing `MethodInfo` of the lambda but that might have been unintentional.
@github-actions github-actions bot locked and limited conversation to collaborators May 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants