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

Andrew Bartlett abartlet at samba.org
Mon May 25 22:54:53 MDT 2015

On Mon, 2015-05-25 at 21:50 -0700, Matthieu Patou wrote:
> 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.

As we got into the unfortunate situation where dbcheck was marked as
flapping, sadly this means this code is untested in 'make test'.  :-(

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

More information about the samba-technical mailing list