projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
971a288
)
Take advantage of rpmstrPoolStreq() in rpmdsCompare()
author
Panu Matilainen
<pmatilai@redhat.com>
Fri, 21 Sep 2012 12:49:11 +0000
(15:49 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Fri, 21 Sep 2012 12:49:11 +0000
(15:49 +0300)
- 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
patch
|
blob
|
history
diff --git
a/lib/rpmds.c
b/lib/rpmds.c
index
973490f
..
61e6c64
100644
(file)
--- 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 (!r
streq(rpmdsN(A), rpmdsN
(B))) {
+ if (!r
pmstrPoolStreq(A->pool, rpmdsNId(A), B->pool, rpmdsNId
(B))) {
result = 0;
goto exit;
}