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

CallSiteValidator doesn't cache results of the walk #2353

Closed
davidfowl opened this issue Sep 14, 2019 · 1 comment
Closed

CallSiteValidator doesn't cache results of the walk #2353

davidfowl opened this issue Sep 14, 2019 · 1 comment
Milestone

Comments

@davidfowl
Copy link
Member

When ScopeValidation is on for the dependency injection container, we walk to resolution graph and find places where service lifetimes are mismatched (like singleton -> scoped). This logic currently doesn't mark visited services which leads to re-calculating results repeatedly which ends up being O(N!).

Run this example with scope validation on:
https://github.com/sergey-kolodiy/AspNetCore.DI

@ghost
Copy link

ghost commented May 8, 2020

As part of the migration of components from dotnet/extensions to dotnet/runtime (aspnet/Announcements#411) we will be bulk closing some of the older issues. If you are still interested in having this issue addressed, just comment and the issue will be automatically reactivated (even if you aren't the author). When you do that, I'll page the team to come take a look. If you've moved on or workaround the issue and no longer need this change, just ignore this and the issue will be closed in 7 days.

If you know that the issue affects a package that has moved to a different repo, please consider re-opening the issue in that repo. If you're unsure, that's OK, someone from the team can help!

@ghost ghost closed this as completed May 15, 2020
@ghost ghost locked as resolved and limited conversation to collaborators May 27, 2023
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants