From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.204.112.148 with SMTP id w20cs59221bkp; Wed, 29 Apr 2009 08:03:13 -0700 (PDT) Received-SPF: pass (google.com: domain of grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com designates 10.224.46.14 as permitted sender) client-ip=10.224.46.14; Authentication-Results: mr.google.com; spf=pass (google.com: domain of grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com designates 10.224.46.14 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.224.46.14]) by 10.224.46.14 with SMTP id h14mr651402qaf.0.1241017391805 (num_hops = 1); Wed, 29 Apr 2009 08:03:11 -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: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=AgXBF9ygC2VqQC0GQM8okwQbe33u+OvHrD7QCsprWZQ=; b=fxISybeD3sZL8BRuzeFyEtQUzmj6QVNqoWl2T1pdWAwAPXC/hB/yS9awZuUTRzqJhs N2tbakEroYoM6QtbZRjy0aPzGbLO2nz5m0U7MGxLGsnNqdG4GPvSVZGcQtIRp9PiwT/M SHCTxC3lGJX52tFYxn0rgryaySd+OuhEeHF0w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-sender:x-apparently-to:received-spf:authentication-results :mime-version: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=xdLPimUtB9dbMc4vXx9EGdChxsR2quFIdUsm60Hush625SsTTfiwGrSz6szuoDFaDz x/b7lGdjQhzGUeLEs8hnvX5TBffgI8iAG/XkGZWPogbSZ7ES2SU+SXoApTDHCk78wvZ/ 0GAtrMPYB+uEvjiYnPAHQi+yODNynsmnqAhyk= Received: by 10.224.46.14 with SMTP id h14mr81338qaf.0.1241017391623; Wed, 29 Apr 2009 08:03:11 -0700 (PDT) Received: by 10.230.18.136 with SMTP id w8gr1255vba.0; Wed, 29 Apr 2009 08:03:11 -0700 (PDT) X-Sender: jeremy@bitsweat.net X-Apparently-To: rack-devel@googlegroups.com Received: by 10.90.94.15 with SMTP id r15mr318009agb.2.1241017390074; Wed, 29 Apr 2009 08:03:10 -0700 (PDT) Return-Path: Received: from mail-gx0-f179.google.com (mail-gx0-f179.google.com [209.85.217.179]) by gmr-mx.google.com with ESMTP id 39si93063yxd.7.2009.04.29.08.03.09; Wed, 29 Apr 2009 08:03:09 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.217.179 is neither permitted nor denied by best guess record for domain of jeremy@bitsweat.net) client-ip=209.85.217.179; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.217.179 is neither permitted nor denied by best guess record for domain of jeremy@bitsweat.net) smtp.mail=jeremy@bitsweat.net Received: by gxk27 with SMTP id 27so680903gxk.21 for ; Wed, 29 Apr 2009 08:03:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.151.134.11 with SMTP id l11mr1561539ybn.111.1241017389803; Wed, 29 Apr 2009 08:03:09 -0700 (PDT) Date: Wed, 29 Apr 2009 08:03:09 -0700 Message-ID: <69a2885c0904290803j292d2c45j5a46d0e759b6272a@mail.gmail.com> Subject: 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 CommonLogger calculates the content length itself. This duplicates work done by the app or ContentLength middleware. The middleware is simpler, faster, and generates less garbage per request by using the Content-Length header instead. Patch: http://github.com/jeremy/rack/commit/f9d38d9d866060be39192675adcc2efc19164c6f Best, jeremy