From 0e37c560d8c1f03d100214a6df5db47391c0709d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 14 Oct 2010 19:10:02 -0700 Subject: [PATCH] Optimize uninstall selection more. --- pym/_emerge/depgraph.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 6744d9072..5a7a98393 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -4275,6 +4275,11 @@ class depgraph(object): min_parent_deps = len(parent_deps) uninst_task = task + if uninst_task is not None and min_parent_deps == 1: + # This is the best possible result, so so abort search + # now in order avoid wasting any more cpu time. + break + if uninst_task is not None: # The uninstall is performed only after blocking # packages have been merged on top of it. File -- 2.26.2