From 1092fcfed876a6c47cd0a277c49a7621b11f08ee Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 16 Jan 2002 18:51:20 +0000 Subject: [PATCH] remark for future (questionable) optimization --- servers/slapd/dn.c | 3 +++ 1 file changed, 3 insertions(+) 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. */ -- 2.39.5