From ad3f256be3c8507473f22c92ee031d422fc712c4 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Fri, 21 Sep 2012 15:49:11 +0300 Subject: [PATCH] Take advantage of rpmstrPoolStreq() in rpmdsCompare() - This gives quite a speedup for dependency checking as within transaction, all the dependency sets come from the same pool and making this just an integer comparison. --- lib/rpmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rpmds.c b/lib/rpmds.c index 973490f..61e6c64 100644 --- a/lib/rpmds.c +++ b/lib/rpmds.c @@ -825,7 +825,7 @@ int rpmdsCompare(const rpmds A, const rpmds B) int result; /* Different names don't overlap. */ - if (!rstreq(rpmdsN(A), rpmdsN(B))) { + if (!rpmstrPoolStreq(A->pool, rpmdsNId(A), B->pool, rpmdsNId(B))) { result = 0; goto exit; } -- 2.7.4