From: Pierangelo Masarati Date: Wed, 16 Jan 2002 18:51:20 +0000 (+0000) Subject: remark for future (questionable) optimization X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~104 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1092fcfed876a6c47cd0a277c49a7621b11f08ee;p=openldap remark for future (questionable) optimization --- diff --git a/servers/slapd/dn.c b/servers/slapd/dn.c index 75d4fb4553..19960cebf4 100644 --- a/servers/slapd/dn.c +++ b/servers/slapd/dn.c @@ -139,6 +139,9 @@ dnValidate( * (use memcmp, which implies alphabetical order in case of IA5 value; * this should guarantee the repeatability of the operation). * + * Note: the sorting can be slightly improved by sorting first + * by attribute type length, then by alphabetical order. + * * uses a linear search; should be fine since the number of AVAs in * a RDN should be limited. */