Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove redundant calls from
PreFetch
(#1456)
In every `DependencyClient` we have, `MatchingVersions()` is just a call to `Versions()` plus semver matching, which is computationally expensive. It also was being called on every edge of the pre-fetched graphs. Removed it to reduce CPU usage and hopefully improve performance with Maven resolution / Guided Remediation. I've also skipped fetching things with `MavenDependencyOrigin` set (e.g. dependencyManagement dependencies) since there's potentially hundreds of them.
- Loading branch information