Add in-memory hash for caching rpmdb dependency lookups
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 30 Oct 2009 11:31:01 +0000 (13:31 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 30 Oct 2009 11:31:01 +0000 (13:31 +0200)
commit2e76d0e6c83ca7bd08651c47fd1aee40f89333c4
tree08341202bf8d434f1764c289ccb3c083ef41a627
parent77c25db03a55113a77d6a56c422615f9cd4ec435
Add in-memory hash for caching rpmdb dependency lookups
- worst case behavior for uncached dependency lookups can be disastrous,
  eg > 35s vs < 1s on my laptop for trying to remove /bin/sh provider
- we only bother caching rpmdb lookups, the other cases plenty fast already
- using in-memory cache avoids nasty in vs out of chroot issues with
  temporary db files, which otherwise were about as fast
lib/depends.c