Unify dbiIndexSet allocations, allocate in power-of-two sizes
authorPanu Matilainen <pmatilai@redhat.com>
Sat, 29 Nov 2008 11:52:32 +0000 (13:52 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Sat, 29 Nov 2008 11:52:32 +0000 (13:52 +0200)
commit604a54277ed21f1fd983c205ad7d36feb3950ce1
tree5417965701b972845487586c52694ab6bfafa903
parent881f14d277eefc70d65bf48b1837f0219572f397
Unify dbiIndexSet allocations, allocate in power-of-two sizes
- allocating in even sized chunks helps avoiding crazy memory fragmentation
  when resizing a lot (rhbz#472507)
- HEAD doesn't really need, rpm 4.6.x does, but doesn't hurt either...
lib/rpmdb.c
lib/rpmdb_internal.h