diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-06-12 15:12:26 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-06-12 15:12:26 -0700 |
commit | c754569663408e515fa134c52c7b3b8a1bb15181 (patch) | |
tree | e1e9e0c8dbb1d08cb9fc602ffe6e1236f9b4ffcc /pym/_emerge | |
parent | 5e5b5c28dec6e9112f85adf0e2aaa00089010e62 (diff) | |
download | portage-c754569663408e515fa134c52c7b3b8a1bb15181.tar.gz portage-c754569663408e515fa134c52c7b3b8a1bb15181.tar.bz2 portage-c754569663408e515fa134c52c7b3b8a1bb15181.zip |
test_merge_order: test smallest runtime cycle
In the case of multiple runtime cycles, where some cycles
may depend on smaller independent cycles, it's optimal
to merge smaller independent cycles before other cycles
that depend on them. Therefore, we search for the
smallest cycle in order to try and identify and prefer
these smaller independent cycles.
Diffstat (limited to 'pym/_emerge')
-rw-r--r-- | pym/_emerge/depgraph.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 3b47c3574..9ce199b15 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -5022,6 +5022,12 @@ class depgraph(object): # we want to minimize the number of nodes gathered, since # this tends to produce a more optimal merge order. # Ignoring all medium_soft deps serves this purpose. + # In the case of multiple runtime cycles, where some cycles + # may depend on smaller independent cycles, it's optimal + # to merge smaller independent cycles before other cycles + # that depend on them. Therefore, we search for the + # smallest cycle in order to try and identify and prefer + # these smaller independent cycles. ignore_priority = priority_range.ignore_medium_soft smallest_cycle = None for node in nodes: |