diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-03-18 19:55:57 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-03-18 19:58:39 +0200 |
commit | c1a677e839a7d3efae41f95c5e0d10a974b9db7b (patch) | |
tree | a0826d1ddf62e2dd5840bd38594f78e3ed40e3c2 /lib/rpmal.h | |
parent | ec1e62230739735e314def0f494506ed08dd028e (diff) | |
download | rpm-c1a677e839a7d3efae41f95c5e0d10a974b9db7b.tar.gz rpm-c1a677e839a7d3efae41f95c5e0d10a974b9db7b.tar.bz2 rpm-c1a677e839a7d3efae41f95c5e0d10a974b9db7b.zip |
Lazy rpmal hash creation on first lookup, make rpmalMakeIndex() static
- the "new" hash-based rpmal only uses rpmalMakeIndex() for initial
creation of the hash tables as late as possible for better estimate
of needed hash size, but doesn't require any index regeneration if something
is added
- first call to rpmalSatisfiedDepend() now initializes the hashes, if
significant amount of entries are added after the first call hash
table might get full ... so dont do that ;) (this was already true
with rpmalMakeIndex(), now its just hidden out of sight)
Diffstat (limited to 'lib/rpmal.h')
-rw-r--r-- | lib/rpmal.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/rpmal.h b/lib/rpmal.h index 26407364f..aff5554c4 100644 --- a/lib/rpmal.h +++ b/lib/rpmal.h @@ -54,13 +54,6 @@ void rpmalAdd(rpmal al, rpmte p); /** - * Generate index for available list. - * @param al available list - */ -RPM_GNUC_INTERNAL -void rpmalMakeIndex(rpmal al); - -/** * Lookup best provider for a dependency in the available list * @param al available list * @param ds dependency set |