Skip to content
This repository was archived by the owner on Nov 2, 2018. It is now read-only.
This repository was archived by the owner on Nov 2, 2018. It is now read-only.

[PERF] Remove lambda allocation in ServiceProvider.GetService #282

Closed
@rynowak

Description

@rynowak

https://github.com/aspnet/DependencyInjection/blob/dev/src/Microsoft.Framework.DependencyInjection/ServiceProvider.cs#L52

This lamdba is allocating about 6mb across 10000 requests of a simple MVC app. We could easily make this 0 by turning the lambda into an instance method and caching a delegate to it.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions