Closed pakrym closed 6 years ago
BuildServiceProvider
with Scoped->Scoped->Scoped tree25% faster, ~3x less allocations in count and size
Typo alert in PR title: DependencyInjeciton > DependencyInjection
@jawn thanks 😄
@pakrym why is the built red?
I see the new test does 350 dependencies deep. Is this the new "limit"? (I see there are test files still included for 999) I'll grab this branch and try it out tomorrow with my breaking project from https://github.com/aspnet/Home/issues/2737
@pakrym Works great. Also as @davidfowl mentioned about the build failing i had to add readonly to the struct properties to get it to compile locally as well.
C:\projects\dependencyinjection\src\DI\ServiceLookup\ILEmit\ILEmitCallSiteAnalysisResult.cs(19,20): error CS8340: Instance fields of readonly structs must be readonly. [C:\projects\dependencyinjection\src\DI\DI.csproj]
I see Emit and I upvote ❤️ 🔥 🍺