Unverified Commit 0a8367b1 authored by Samuel Giddins's avatar Samuel Giddins Committed by GitHub

Merge pull request #7582 from jmkk/resolver_perf

[Resolver] Fix performance issue with exponential growth of dependency nodes cache
parents 7813c5f0 a7562fe7
...@@ -8,7 +8,8 @@ To install release candidates run `[sudo] gem install cocoapods --pre` ...@@ -8,7 +8,8 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Enhancements ##### Enhancements
* None. * Improve performance of the dependency resolver by removing duplicates for dependency nodes.
[Jacek Suliga](https://github.com/jmkk)
##### Bug Fixes ##### Bug Fixes
......
...@@ -577,7 +577,7 @@ module Pod ...@@ -577,7 +577,7 @@ module Pod
dependency_nodes.flat_map do |item| dependency_nodes.flat_map do |item|
valid_dependencies_for_target_from_node(target, dependencies, item) valid_dependencies_for_target_from_node(target, dependencies, item)
end.concat dependency_nodes end.concat(dependency_nodes).uniq
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment