httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruediger Pluem <rpl...@apache.org>
Subject Re: svn commit: r329849 - in /httpd/httpd/trunk: CHANGES modules/proxy/proxy_util.c
Date Tue, 01 Nov 2005 14:29:57 GMT


On 11/01/2005 02:58 PM, Jim Jagielski wrote:

[..cut..]

> 
> Certainly strncmp is quicker, since strncasecmp does an auto
> tolower on each char. But we are doing that in both cases,
> whether we're tolower'ing the string first, or whether we're
> doing it at comparison time. So we're not saving anything
> really there.

Yes, but lowering explicitly is done *outside* the for loop.
strncasecmp is done *inside* the for loop. So we do this via
strncasecmp multiple times on the same data.

Regards

RĂ¼diger

Mime
View raw message