httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <trawi...@bellsouth.net>
Subject Re: cvs commit: httpd-2.0/server/mpm/prefork prefork.c
Date Mon, 08 Jan 2001 18:19:51 GMT
rbb@covalent.net writes:

> > > Can we change the strcmp to a memcmp, since we know that these are static
> > > strings?
> > 
> > Is there a compiler which is known to generate worse code for strcmp()
> > than for memcmp() in this case?
> > 
> > (I'm not saying there isn't; I just know that there are some which
> > generate the same code.  Of course I'm speaking of compilers which
> > generate inline code for various strxxx() and memxxx() "functions".)
> 
> I don't really know, but memcmp can obviously generate fast code, so why
> take the chance?

no argument with that; I was just fishing for interesting info

-- 
Jeff Trawick | trawickj@bellsouth.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...

Mime
View raw message