Use name hashes in depends to avoid strcmp calls
commit735a197fc29b6b85a64cae5a6fa95e1209552c3b
authorDan McGee <dan@archlinux.org>
Tue, 21 Dec 2010 21:40:04 +0000 (21 15:40 -0600)
committerDan McGee <dan@archlinux.org>
Tue, 21 Dec 2010 23:25:34 +0000 (21 17:25 -0600)
treeffc24707b052f62ac671a75e3228dc81cf60ec59
parent34a78d935ac44fc73becc8bba213cdf0268bb5e0
Use name hashes in depends to avoid strcmp calls

Just like we did for package name comparsions, if we add a depend name_hash
field on depend struct initialization, we can use it instead of doing a
string name comparison, saving us a lot of checks in the depcmp code.

Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/deps.c
lib/libalpm/deps.h