Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 10901 invoked by uid 6000); 13 Aug 1998 16:16:57 -0000 Received: (qmail 10894 invoked from network); 13 Aug 1998 16:16:55 -0000 Received: from twinlark.arctic.org (204.62.130.91) by taz.hyperreal.org with SMTP; 13 Aug 1998 16:16:55 -0000 Received: (qmail 24343 invoked by uid 500); 13 Aug 1998 16:24:16 -0000 Date: Thu, 13 Aug 1998 09:24:16 -0700 (PDT) From: Dean Gaudet To: new-httpd@apache.org Subject: Re: [IDEA] using tsearch() -- was: [finrod@EWOX.ORG: YA Apache DoS attack] In-Reply-To: Message-ID: X-Comment: Visit http://www.arctic.org/~dgaudet/legal for information regarding copyright and disclaimer. 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, 13 Aug 1998, Dean Gaudet wrote: > One option for speeding up the core and proxy, which search for fixed-name > such as "Content-Length" would be to "intern" the names. BTW, we can use a perfect hash to do the intern operation as well -- so we'd actually have a flat file that lists all the internable names, and then a tool that generates a few .h files and a .c file with the perfect hash function in it. Standard compiler trick :) Dean