Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 15677 invoked by uid 6000); 12 Mar 1998 20:35:17 -0000 Received: (qmail 15670 invoked from network); 12 Mar 1998 20:35:14 -0000 Received: from sunny.bog.msu.su (158.250.20.1) by taz.hyperreal.org with SMTP; 12 Mar 1998 20:35:14 -0000 Received: from localhost (dima@localhost) by sunny.bog.msu.su (8.8.8/8.8.8) with SMTP id XAA21195 for ; Thu, 12 Mar 1998 23:35:00 +0300 (MSK) (envelope-from dima@bog.msu.su) Date: Thu, 12 Mar 1998 23:34:59 +0300 (MSK) From: Dmitry Khrustalev To: new-httpd@apache.org Subject: Re: BrowserMatch considered harmful In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org On Thu, 12 Mar 1998, Dean Gaudet wrote: > I've been meaning to do this -- I'm not sure if it's the browser-match > rules or if it's because of the util_uri regex parser in your case. I was > going to hand code the util_uri parser after the rest of the code was > shown to be right. Both, but browsermatch is really evil. match_headers takes 38.5 percent. considering it's work could be done with simple strstr, it's awful waste. also, it will do strcasecmp 5 * ( number of configured rules ) times. > > Dean > > On Thu, 12 Mar 1998, Dmitry Khrustalev wrote: > > > > > I wonder is anyone profiled httpd using distributed configuration? > > > > regexec takes 45 percent of CPU time. 5 browser-match rules are > > configured, all simple substring matches. > > > > -Dima > > > > >