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

RE: OpenLDAP-specific API



> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Dave Horsfall

> On Thu, 13 Mar 2003, Howard Chu wrote:
>
> [ Good points, but understood anyway ]

> And my point in turn was that if you're going to replace one call with
> another one, at least try and not make the same mistake; there is no
> place in any library for a routine that blindly copies data into an
> unknown user-provided buffer.

> Now, if you want to make it strncopy(char *dst, const char *src, size_t
len)
> then I'm with you

Of course, that's in liblutil as well. But again, that was not relevant to my
main point.

> (but I still doubt whether finding the end of a string
> consumes a significant chunk of CPU time as you claim).

As I said, it seems like a small thing. Run a profile and see for yourself,
the reality can be quite shocking.

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