-
Notifications
You must be signed in to change notification settings - Fork 206
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
Improve locking on container.nodes #24
Comments
Define "too long" and what would make it not "too long". |
ok, "too long" may be a loose wording, but essentially we are handing over the container lock to Invoked function for the duration of its execution (resolving dependency will involve executing constructors as well). I am proposing to use locking only when |
I suggest that we write a benchmark, and consider that this is only happening at service startup. That should give us some ammo to talk about what's "too long". Locking entire Invoke/Resolve should not be that bad in favor of consistency, but I may be wrong. This is not something that happens 20k times a second, but rather 10 times on bootup. |
Closing in light of #50 |
* Remove traffic reporter/tracker In favor of modules emitting metrics natively. GFM-108
container.nodes
map is being used in exported functions that are explicitly locked. We need to improve container locking once #21 is landed. Invoke is taking too long, we don't want to lock the entire dig container.The text was updated successfully, but these errors were encountered: