[PATCH] avoid calling casefold_internal if the dn is already casefolded
Matthieu Patou
mat at samba.org
Tue Dec 11 23:23:12 MST 2012
Hello,
Can someone review this patch ?
It comes from analysis of indexed ldb_search with scope = one or subtree.
For each entries in the index we will compare the dn in the index to dn
specified as base for the search. And we keep casefolding the later one
which is useless and costly.
With a hundreds of entries in the index the cost of cost folding is
starting to be one of the most important one. With this patch we can
avoid useless calls.
Matthieu.
--
Matthieu Patou
Samba Team
http://samba.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ldb-Check-if-the-DN-is-already-casefolded-before-cal.patch
Type: text/x-diff
Size: 2141 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20121211/df061e91/attachment.patch>
More information about the samba-technical
mailing list