From: Florian Festi Date: Thu, 16 Oct 2008 10:13:13 +0000 (+0200) Subject: Use better cache sizes X-Git-Tag: tznext/4.11.0.1.tizen20130304~3523 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ccbb618bfc2bb2a74674b9e49c5637abb34515d9;p=tools%2Flibrpm-tizen.git Use better cache sizes --- diff --git a/lib/transaction.c b/lib/transaction.c index a9c4a91..46b949d 100644 --- a/lib/transaction.c +++ b/lib/transaction.c @@ -1061,9 +1061,9 @@ int rpmtsRun(rpmts ts, rpmps okProbs, rpmprobFilterFlags ignoreSet) (void) rpmtsSetChrootDone(ts, 1); } - ts->ht = rpmFpHashCreate(totalFileCount * 2, fpHashFunction, fpEqual, + ts->ht = rpmFpHashCreate(totalFileCount * 2 + 1, fpHashFunction, fpEqual, NULL, NULL); - fpc = fpCacheCreate(totalFileCount * 2); + fpc = fpCacheCreate(totalFileCount * 2 + 10001); /* =============================================== * Add fingerprint for each file not skipped.