Small tdb optimization

Rusty Russell rusty at
Sun Dec 18 18:54:31 MST 2011

On Thu, 15 Dec 2011 12:18:57 +0100, Volker Lendecke <Volker.Lendecke at SerNet.DE> wrote:
Non-text part: multipart/mixed
> Hi, Rusty!
> Attached find a small modification that might show some
> speedup for large (i.e. ldb index) records.
> The same would need to be applied to tdb2/tdb1_tdb.c if
> accepted.
> With best regards,

I like it; I think saving the malloc & copy is better than avoiding two
copies into the mmap.  I think the dbuf.dsize != 0 check is unnecessary


More information about the samba-technical mailing list