apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Malo ...@perlig.de>
Subject Re: [PATCH] locale independent apr_str_eq function
Date Sun, 03 Aug 2003 12:37:23 GMT
* Joe Orton wrote:

> I understand the need for a strcasecmp replacement, but are the
> strcmp/!strcmp replacements just for consistency? On some platforms
> strcmp is an optimised asm inline so unless there's a good reason to
> tempt people away from strcmp I'd leave apr_streq/strneq out.

Attached is a quick benchmark with very interesting results. Some other
compiler tests would be helpful, of course.
The main result of this one is: As long as the function is inlined and an
optimizer is turned on, it's reasonably faster than strcmp.
It's finally worth the effort, I think.

I'm wondering, how it would be as a shared lib, though.

nd

Mime
View raw message