[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
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