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

Avoid duplicating known targets and import paths #1590

Merged
merged 2 commits into from Mar 18, 2021

Conversation

pepeiborra
Copy link
Collaborator

We currently duplicate all the known targets on every cradle reload, which leaks space and leads to slower performance in GetLocatedImports.
The trivial fix is to use a Set instead of a list, since the order doesn't matter here.

Copy link
Member

@jneira jneira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, thanks!

@pepeiborra pepeiborra added the merge me Label to trigger pull request merge label Mar 18, 2021
@mergify mergify bot merged commit 982c4ee into master Mar 18, 2021
@Ailrun Ailrun deleted the avoid-duplicating-targets branch April 3, 2021 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Label to trigger pull request merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants