From ba805a9329e55ab738785e139ca4e40b0781d2f1 Mon Sep 17 00:00:00 2001 From: espie Date: Thu, 10 Jan 2013 10:25:25 +0000 Subject: [PATCH] small optimization, fullpkgpath is expensive, and ordering by pkgpath is vastly enough in the current case --- infrastructure/lib/DPB/Heuristics.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infrastructure/lib/DPB/Heuristics.pm b/infrastructure/lib/DPB/Heuristics.pm index 26918a15d37..acae925571a 100644 --- a/infrastructure/lib/DPB/Heuristics.pm +++ b/infrastructure/lib/DPB/Heuristics.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Heuristics.pm,v 1.14 2012/03/09 12:51:38 espie Exp $ +# $OpenBSD: Heuristics.pm,v 1.15 2013/01/10 10:25:25 espie Exp $ # # Copyright (c) 2010 Marc Espie # @@ -177,7 +177,7 @@ sub compare # XXX if we don't know, we prefer paths "later in the game" # so if you abort dpb and restart it, it will start doing # things earlier. - return $a->fullpkgpath cmp $b->fullpkgpath; + return $a->pkgpath cmp $b->pkgpath; } my $sf_per_host = {};