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

fix high memory consumption of fetchWithDeps #6534

Merged
merged 2 commits into from
Oct 10, 2022
Merged

Conversation

davidfirst
Copy link
Member

Originally, a Mutex was used to make sure only one process is running fetchWithDeps, however, instead of re-using the same mutex for all requests, a new instance was created each time.
This PR fixes it by using the ScopeComponentImporter instance of the Scope instead of creating it every fetch.

@davidfirst davidfirst enabled auto-merge (squash) October 10, 2022 15:36
@davidfirst davidfirst merged commit 07c3884 into master Oct 10, 2022
@davidfirst davidfirst deleted the fetch-with-deps-memory branch October 10, 2022 16:06
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

Successfully merging this pull request may close these issues.

2 participants