NO... dsdb-extended: use a cache of dsdb_attributes for the current request
authorMatthieu Patou <mat@matws.net>
Sun, 30 Dec 2012 00:43:53 +0000 (16:43 -0800)
committerStefan Metzmacher <metze@samba.org>
Tue, 29 Jan 2013 21:03:15 +0000 (22:03 +0100)
commit20625690a66fcdfedccb256f36a7d04b79ddfae9
treecfce7b18b5b88595bb0640b6c35ac4103c60105c
parent11de734c3ba1c28c635fe6db06767596693f2872
NO... dsdb-extended: use a cache of dsdb_attributes for the current request

The logic is that for a given search it's often the same given search of
attributes in the same order that is used, so we use a small cache
instead of doing a binary search in the attributes_by_ldapname of the
schema. It helps to reduce the time spent doing strcasecmp.

NO: if we use a cache then it should be global and hidden inside of
dsdb_attribute_by_lDAPDisplayName() in order to speed of all modules.
source4/dsdb/samdb/ldb_modules/extended_dn_out.c