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

Don't hold components to scan after scan finished #116

Merged
merged 2 commits into from
Aug 15, 2021

Conversation

yahavi
Copy link
Member

@yahavi yahavi commented Aug 9, 2021

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • I used npm run format for formatting the code before submitting the pull request.

May help with #109

During refresh dependencies, the extension populates componentsToScan set to be used during the Xray scan.
This object is a class variable, although we don't really need it after the scan ends.
Let's make it a local variable to allow the GC to clear it at the end of the scan.

@yahavi yahavi requested a review from eyalbe4 August 9, 2021 09:00
@yahavi yahavi self-assigned this Aug 9, 2021
@yahavi yahavi merged commit 549ea46 into jfrog:master Aug 15, 2021
@yahavi yahavi deleted the reduce-ram branch August 15, 2021 06:14
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