[PATCH] Improve ldb unindexed search perf

Andrew Bartlett abartlet at samba.org
Tue Aug 23 05:28:45 UTC 2016


This patch set helps us to avoid many talloc() and talloc_free() calls
during the scan of the whole database or of a large index.

Please review.

I'll do a better perf test on this tomorrow.

Andrew Bartlett
-- 
Andrew Bartlett
https://samba.org/~abartlet/
Authentication Developer, Samba Team         https://samba.org
Samba Development and Support, Catalyst IT   
https://catalyst.net.nz/services/samba



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ldb_tdb-Use-LDB_UNPACK_DATA_FLAG_NO_DATA_ALLOC-when-.patch
Type: text/x-patch
Size: 1937 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160823/cf5d2b27/0001-ldb_tdb-Use-LDB_UNPACK_DATA_FLAG_NO_DATA_ALLOC-when-.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-ldb-Avoid-cost-of-talloc_free-for-unmatched-messages.patch
Type: text/x-patch
Size: 9049 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160823/cf5d2b27/0002-ldb-Avoid-cost-of-talloc_free-for-unmatched-messages.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Move-some-ldb_attr_cmp-calls-out-of-the-search-loop.patch
Type: text/x-patch
Size: 5862 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160823/cf5d2b27/0003-Move-some-ldb_attr_cmp-calls-out-of-the-search-loop.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-ldb-Avoid-multiple-tiny-allocations-during-full-DB-s.patch
Type: text/x-patch
Size: 6288 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160823/cf5d2b27/0004-ldb-Avoid-multiple-tiny-allocations-during-full-DB-s.bin>


More information about the samba-technical mailing list