From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.204.72.79 with SMTP id l15cs775231bkj; Thu, 13 Aug 2009 09:37:22 -0700 (PDT) Received-SPF: pass (google.com: domain of grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com designates 10.142.74.9 as permitted sender) client-ip=10.142.74.9; Authentication-Results: mr.google.com; spf=pass (google.com: domain of grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com designates 10.142.74.9 as permitted sender) smtp.mail=grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com; dkim=pass header.i=grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com Received: from mr.google.com ([10.142.74.9]) by 10.142.74.9 with SMTP id w9mr330025wfa.5.1250181441146 (num_hops = 1); Thu, 13 Aug 2009 09:37:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:received:x-sender:x-apparently-to :received:received:received-spf:authentication-results:received :mime-version:received:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding:reply-to :sender:precedence:x-google-loop:mailing-list:list-id:list-post :list-help:list-unsubscribe:x-beenthere-env:x-beenthere; bh=oGbDU6adpec7tEdhfY9CeAEEG7bZwcTVR2Az6z41hIM=; b=RXS/AmVtde8T9y/hxLJhDdaXADO/fbm22T8eQvU254gcdAgfwIpwiuJ9F5brAF8XBQ 8YubZvAVS+I1nPBCBvlo3bW4l7TxbCUhvBdR43Vibt/+URH0+NMo+CxxJQmmYVyFUPCy /DA2+93+DhabuQKoidUecM/TFCVFFBTavKKjI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-sender:x-apparently-to:received-spf:authentication-results :mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding:reply-to:sender:precedence :x-google-loop:mailing-list:list-id:list-post:list-help :list-unsubscribe:x-beenthere-env:x-beenthere; b=rSEY0ewRmXk9yM+xi8/7G9P7mBKMgwIdlLuMsnAD5MTJtXhhy7iBNATp9UTj50zkE0 hF+2PoTW60H7XnMzoCJDF2v4Kd0QU3xO5q3K2rFNifee1DutPaINzfiUFgNIH6esFa4t y5eINnVpvhTX2O+rDZzneU1tMMW/LIDQ+uahU= Received: by 10.142.74.9 with SMTP id w9mr55221wfa.5.1250181440794; Thu, 13 Aug 2009 09:37:20 -0700 (PDT) Received: by 10.230.88.76 with SMTP id z12gr1577vbl.0; Thu, 13 Aug 2009 09:37:09 -0700 (PDT) X-Sender: jeremy@bitsweat.net X-Apparently-To: rack-devel@googlegroups.com Received: by 10.150.142.5 with SMTP id p5mr337785ybd.2.1250181425985; Thu, 13 Aug 2009 09:37:05 -0700 (PDT) Return-Path: Received: from mail-yw0-f203.google.com (mail-yw0-f203.google.com [209.85.211.203]) by gmr-mx.google.com with ESMTP id 25si33363yxe.9.2009.08.13.09.37.04; Thu, 13 Aug 2009 09:37:05 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.211.203 is neither permitted nor denied by best guess record for domain of jeremy@bitsweat.net) client-ip=209.85.211.203; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.211.203 is neither permitted nor denied by best guess record for domain of jeremy@bitsweat.net) smtp.mail=jeremy@bitsweat.net Received: by ywh41 with SMTP id 41so1218282ywh.23 for ; Thu, 13 Aug 2009 09:37:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.129.27 with SMTP id b27mr1560590ybd.29.1250181419298; Thu, 13 Aug 2009 09:36:59 -0700 (PDT) In-Reply-To: <52E130C2-1B1F-4C0D-9724-D99AD5F8491B@gmail.com> References: <69a2885c0904290803j292d2c45j5a46d0e759b6272a@mail.gmail.com> <1c5622660905140728i3c162e1erf2e3058f79c80357@mail.gmail.com> <20090812011427.GA4737@dcvr.yhbt.net> <20090812023813.GA5916@dcvr.yhbt.net> <69a2885c0908121456w41348d4cjff273bbbed958fe3@mail.gmail.com> <69a2885c0908130918t16ad43f5pe6d13086a4afb330@mail.gmail.com> <245fb4700908130930s19059450v59d0155509d287e9@mail.gmail.com> <52E130C2-1B1F-4C0D-9724-D99AD5F8491B@gmail.com> Date: Thu, 13 Aug 2009 11:36:59 -0500 Message-ID: <69a2885c0908130936h1a63194ep5a86083fb05c91d8@mail.gmail.com> Subject: Re: Downsizing CommonLogger From: Jeremy Kemper To: rack-devel@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Reply-To: rack-devel@googlegroups.com Sender: rack-devel@googlegroups.com Precedence: bulk X-Google-Loop: groups Mailing-List: list rack-devel@googlegroups.com; contact rack-devel+owner@googlegroups.com List-Id: List-Post: List-Help: List-Unsubscribe: , X-BeenThere-Env: rack-devel@googlegroups.com X-BeenThere: rack-devel@googlegroups.com On Thu, Aug 13, 2009 at 11:33 AM, Brian Lopez wrote: > Agreed. > -Brian > On Aug 13, 2009, at 9:30 AM, Yehuda Katz wrote: > > I'm personally quite concerned about trying to figure out the content-length > in any Rack middleware. It's expensive to do in pure-ruby, and a later > middleware can mess with the size anyway and be forced to recalculate. I > think the appropriate place for this calculation is in the actual server > that sends the data to the client, where it can be done once and in C. > -- Yehuda On that note, this middleware could be downsized right out of rack core and into -contrib's warm embrace. jeremy