Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 23506 invoked from network); 14 Mar 2007 18:39:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Mar 2007 18:39:18 -0000 Received: (qmail 49395 invoked by uid 500); 14 Mar 2007 18:39:22 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 49341 invoked by uid 500); 14 Mar 2007 18:39:21 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 49330 invoked by uid 99); 14 Mar 2007 18:39:21 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2007 11:39:21 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [80.229.52.226] (HELO grimnir.webthing.com) (80.229.52.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2007 11:39:11 -0700 Received: from grimnir.webthing.com (localhost [127.0.0.1]) by grimnir.webthing.com (Postfix) with ESMTP id 9A1D62136 for ; Wed, 14 Mar 2007 18:38:48 +0000 (GMT) Date: Wed, 14 Mar 2007 18:38:48 +0000 From: Nick Kew To: dev@httpd.apache.org Subject: Re: sed filter module Message-ID: <20070314183848.14ebd463@grimnir> In-Reply-To: <20070314165641.GE10745@redhat.com> References: <0E69D384-8FDE-4242-8383-D96A874D9463@jaguNET.com> <20070314143213.GC10745@redhat.com> <20070314150153.7b29ec59@grimnir> <20070314152743.GD10745@redhat.com> <20070314154505.66d0b38b@grimnir> <20070314165641.GE10745@redhat.com> Organization: WebThing X-Mailer: Sylpheed-Claws 2.5.0-rc3 (GTK+ 2.10.6; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Wed, 14 Mar 2007 16:56:41 +0000 Joe Orton wrote: > On Wed, Mar 14, 2007 at 03:45:05PM +0000, Nick Kew wrote: > > Nope. Just one brigades worth at a time. And the most likely case > > for that to be an entire document is when it's a static file, and > > document == brigade == bucket. > > I'm not sure what you're saying here. Which do you agree with: > > a) size of data represented by a brigade is limited only by apr_off_t ditto size of a bucket > b) httpd does use brigades representing large amounts of content e.g. > containing FILE or CGI/PIPE buckets Again, the unit of indefinite size is the bucket > c) if you loop through all the buckets in a brigade calling read() on > every one, you map all the data represented by the brigade into RAM Indeed. > d) writing filters which use RAM proportional to content size is bad Yep. Now, what leads you to suppose mod_line_edit uses RAM proportional to content size? Other than when the entire contents arrive in a single bucket? -- Nick Kew Application Development with Apache - the Apache Modules Book http://www.apachetutor.org/