Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
a7562fe7
Commit
a7562fe7
authored
Apr 04, 2018
by
Jacek Suliga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Resolver] Fix performance issue with exponential growth of dependency nodes cache
parent
f35a3c59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
CHANGELOG.md
CHANGELOG.md
+2
-1
resolver.rb
lib/cocoapods/resolver.rb
+1
-1
No files found.
CHANGELOG.md
View file @
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
...
...
lib/cocoapods/resolver.rb
View file @
a7562fe7
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment