From 3c0cb331f175dad48be447a6b002f26935bd624c 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 adef1193d..adabc97d4 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -4321,6 +4321,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