summaryrefslogtreecommitdiff
path: root/lib/rpmal.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-03-18 19:55:57 +0200
committerPanu Matilainen <pmatilai@redhat.com>2010-03-18 19:58:39 +0200
commitc1a677e839a7d3efae41f95c5e0d10a974b9db7b (patch)
treea0826d1ddf62e2dd5840bd38594f78e3ed40e3c2 /lib/rpmal.h
parentec1e62230739735e314def0f494506ed08dd028e (diff)
downloadrpm-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.h7
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