[PATCHES] avoid searching for wellknownobjects when not needed, cache results for speed

Matthieu Patou mat at samba.org
Mon May 25 22:50:13 MDT 2015


Hello All,

Please find attached 2 patches that reduce the time of dbcheck by 10%, 
they avoid calling getwellknowobjects when not needed (ie. when dealing 
with the schema NC) and also cache the result of the function as well 
known object didn't change.

Pass make test.

-- 
Matthieu Patou
Samba Team
http://samba.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-dbcheck-do-not-search-for-wellknown-objects-in-schem.patch
Type: text/x-diff
Size: 1690 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20150525/62490d2d/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-ldb-create-a-cache-of-known-wellknown-objects-instea.patch
Type: text/x-diff
Size: 1748 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20150525/62490d2d/attachment-0001.patch>


More information about the samba-technical mailing list