[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#4600) slap_mods_check duplicate check is slow with large number of entries



Also see add.c, line 483, function slap_mods2entry for a further example:

   /* check for duplicates */
   int             i, j, rc, match;
   MatchingRule *mr = mods->sml_desc->ad_type->sat_equality;

   for ( i = 1; mods->sml_values[i].bv_val != NULL; i++ ) {
       /* test asserted values against themselves */
       for( j = 0; j < i; j++ ) {
          rc = ordered_value_match( &match, mods->sml_desc, mr,

          ...
      }
   }