Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 385 invoked by uid 6000); 22 Jan 1999 23:39:34 -0000 Received: (qmail 359 invoked from network); 22 Jan 1999 23:39:32 -0000 Received: from twinlark.arctic.org (204.107.140.52) by taz.hyperreal.org with SMTP; 22 Jan 1999 23:39:32 -0000 Received: (qmail 21782 invoked by uid 500); 22 Jan 1999 23:39:24 -0000 Date: Fri, 22 Jan 1999 15:39:24 -0800 (PST) From: Dean Gaudet To: new-httpd@apache.org cc: Renaud Bruyeron Subject: Re: mod_speling mem usage on large directories 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 Fri, 22 Jan 1999, Dean Gaudet wrote: > > On Fri, 22 Jan 1999, Eric Prud'hommeaux wrote: > > > My plan was to take care of the bulk of the problem (assuming > > fortuitous memory management) by using ap_realloc or ap_free. Since > > these functions don't exist, I'm writing to you with a bug report, > > rather than a patch. Sorry. > > Use Roy's new function ap_array_pstrcat(). Just build a big array of all > the pieces and then cat them together in the end. There's also the ap_table_mergen() in there to deal with the variants list. That's O(n^2) memory... and to fix that you need to use ap_overlap_tables. Bleh. Dean