httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: svn commit: r329849 - in /httpd/httpd/trunk: CHANGES modules/proxy/proxy_util.c
Date Tue, 01 Nov 2005 14:36:45 GMT
Ruediger Pluem wrote:
> 
> 
> > 
> > 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.
> 

Whatever. Change it then.

-- 
=======================================================================
 Jim Jagielski   [|]   jim@jaguNET.com   [|]   http://www.jaguNET.com/
           "If you can dodge a wrench, you can dodge a ball."

Mime
View raw message