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

Re: optimization

At 08:43 AM 2001-11-09, Mark Adamson wrote:
>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?

The plan is replace strings to bervals most everywhere...
so jump on in.