On 11/01/2005 02:27 PM, Jim Jagielski wrote: > Since this happens for each request, doing a string copy seems > wasteful to me; it's extra overhead that is avoided with the > current impl. Instead, we have an extra assignment and > check, which is less expensive.
This is fine. My other approach was born of the idea that we can replace strncasecmp with strncmp in the loop. Just for interest: Any idea regarding the difference in performance between both? Regards Rüdiger [..cut..]