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 exponential execution time for resolving complex dependencies #398

Conversation

monae
Copy link
Contributor

@monae monae commented Jan 19, 2024

Addresses issue #394.

This PR improves the performance of getResolvedArtifactsFromResolvedDependencies by recording the dependencies that have already been processed.
This allows the function that used to take exponential time in the worst case to now be done in linear time.
The test I wrote takes about 2 minutes on my machine before the patch is applied, but now takes only a few seconds after the patch is applied.

@jaredsburrows jaredsburrows merged commit 8b34794 into jaredsburrows:master Jan 19, 2024
2 checks passed
@jaredsburrows
Copy link
Owner

@monae Thanks!

@monae monae deleted the feature/fix-redundant-dependency-resolution branch January 19, 2024 06:39
@jaredsburrows
Copy link
Owner

Closes #394

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.

None yet

2 participants