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

Consider hierarchical route-like resolution cache for default delegates #10

Closed
dadhi opened this issue Aug 19, 2018 · 1 comment
Closed

Comments

@dadhi
Copy link
Owner

dadhi commented Aug 19, 2018

Currently there is only one resolution cache and it is located in root container. OpenScope does not create its own.

This inflicts number of problems with scope (name) drpendent services, e.g. we need different implementations for scoped and singleton service, or between different named scopes. To solve it we fallback to more powerful but slow context aware Resolve(...Request preResolveParent,...) and keyed resolution cache.

The new idea is to have cache-like structure with the root cache and multiple scope caches. Each scope cache will contain delegates resolved in scope, and the cache will be identifed by whole nested scopes route, e.g. "/*/*/name/*". Then OpenScope will set the matching scope cache as default to look for, or will create a new scope cache for the first time.

@dadhi dadhi changed the title Consider hierarchical route-like resolution cache for default dekegates Consider hierarchical route-like resolution cache for default delegates Aug 19, 2018
@dadhi
Copy link
Owner Author

dadhi commented Feb 10, 2019

Don't think it is much important now, cause of interpretation and Use directly on scopes.

@dadhi dadhi closed this as completed Feb 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant