Re: Speedup idea (by changing some strcasecmp into memcmp)

2005-11-09 Thread Brian Candler
On Tue, Nov 08, 2005 at 10:45:25PM +0100, Christophe Jaillet wrote: If the idea sounds interesting to you, I can provide a set of patchs that implement this idea. Perhaps it would be better to start with profiling data. If you can demonstrate via profiling that httpd spends a significant

Speedup idea (by changing some strcasecmp into memcmp)

2005-11-08 Thread Christophe Jaillet
Hi, in many places in apache, strings are compared using the following construction : if (0 == strcasecmp(XX, str)) { ... } else if (0 == strcasecmp(YY, str)) { ... } else if (0 == strcasecmp(ZZ, str)) { ... } else if (0 == strcasecmp(AA, str)) { ... } ... This

Re: Speedup idea (by changing some strcasecmp into memcmp)

2005-11-08 Thread Ruediger Pluem
On 11/08/2005 10:45 PM, Christophe Jaillet wrote: Hi, in many places in apache, strings are compared using the following construction : if (0 == strcasecmp(XX, str)) { ... } else if (0 == strcasecmp(YY, str)) { ... } else if (0 == strcasecmp(ZZ, str)) { ...