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

RE: optimization

I think it's a good idea. I've often considered this myself; should be using
bervals everywhere. Other places that have an impact - backend suffixes, and

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support

> -----Original Message-----
> From: owner-openldap-devel@OpenLDAP.org
> [mailto:owner-openldap-devel@OpenLDAP.org]On Behalf Of Mark Adamson
> Sent: Friday, November 09, 2001 8:44 AM
> To: openldap-devel@OpenLDAP.org
> Subject: Re: optimization
> OK, here is an easy optimization for slapd. There are a lot of calls to
> strlen() which actually add up to a noticeable amount of time. I'm looking
> around for places where strlen() is called on the string component of a
> berval, which could be converted to just copying the bv_len field.
> One place that sees this a lot is UTF8normalize. It's only called from
> schema_init.c, and in every case the bv_val of a berval is passed in. I'd
> like to convert the function to take a *berval instead of a *string.
> Does this conflict with any future plans?
> -Mark Adamson
>  Carnegie Mellon