Port from SAMBA tdb: commit a6cc04a20089e8fbcce138c271961c37ddcd6c34 Author: Andrew...
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 29 Jul 2009 05:21:34 +0000 (14:51 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 4 Aug 2009 07:13:31 +0000 (16:43 +0930)
commite72974e5cefabc7035399d16633f727f868caa61
tree078ca833bf694cba6bd06bc46258407fc3f8295a
parent233c52bfb087f636ad61e95c12616c02901f4f83
Port from SAMBA tdb: commit a6cc04a20089e8fbcce138c271961c37ddcd6c34 Author: Andrew Tridgell <tridge@samba.org> Date: Mon Jun 1 13:13:07 2009 +1000

overallocate all records by 25%

    This greatly reduces the fragmentation of databases where records
    tend to grow slowly by a small amount each time. The case where this
    is most seen is the ldb index records. Adding this overallocation
    reduced the size of the resulting database by more than 20x when
    running a test that adds 10k users.
lib/tdb/common/freelist.c