-
-
Notifications
You must be signed in to change notification settings - Fork 123
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
[Perf] Avoid locking of service creation in scope if possible #203
Comments
|
Idea:
Open questions:
|
I think that's the only safe thing to improve on.
This way the lock will be of constant time - just a single constructor call with known argument values (assuming that constructor itself does not do a db backup or similar). |
The idea is the Scope is usually created per thread or logical execution flow,
so it should be the rare cases when service creation is done on other threads.
The text was updated successfully, but these errors were encountered: