[WIP][PATCH] Improve tdb add/modify/delete loop perf by almost 20%

Andrew Bartlett abartlet at samba.org
Tue Jul 26 12:45:05 UTC 2016

I've been looking into where we spend our time when we are in an
add/modify/delete loop.

Thankfully this is now linear growth in time, but we can still address
parts of that linear growth (earlier Samba versions were superlinear) .

Please have a look at the attached, as if they hold up under test I
would like to push these tomorrow after further refinement.

We can presumably also apply the same approach to the reindex traverse.

This came our of research trying to prove a more complex approach,
keeping our in-memory index values around longer, but making it faster
to load it from the tdb seems a good first step.

Please comment

Andrew Bartlett
Andrew Bartlett                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ldb-Add-ldb_unpack_data_only_attr_list_flags.patch
Type: text/x-patch
Size: 8893 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160727/ba3d1cc6/0001-ldb-Add-ldb_unpack_data_only_attr_list_flags.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-ldb-Add-flags-to-ltdb_search_dn1-to-control-memory-a.patch
Type: text/x-patch
Size: 8503 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160727/ba3d1cc6/0002-ldb-Add-flags-to-ltdb_search_dn1-to-control-memory-a.bin>

More information about the samba-technical mailing list