Re: Proposal: New Frame Size Text (was: Re: Design Issue: Frame Size Items)

Roberto Peon <grmocg@gmail.com> Sat, 11 May 2013 03:17 UTC

Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A31C521F89CF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 10 May 2013 20:17:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.862
X-Spam-Level:
X-Spam-Status: No, score=-7.862 tagged_above=-999 required=5 tests=[AWL=-2.264, BAYES_00=-2.599, GB_SUMOF=5, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tiGnTHITMt77 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 10 May 2013 20:17:05 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 2CD8621F89B2 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 10 May 2013 20:17:04 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Ub0IT-0006Wy-2y for ietf-http-wg-dist@listhub.w3.org; Sat, 11 May 2013 03:16:33 +0000
Resent-Date: Sat, 11 May 2013 03:16:33 +0000
Resent-Message-Id: <E1Ub0IT-0006Wy-2y@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1Ub0IH-0006Vr-0D for ietf-http-wg@listhub.w3.org; Sat, 11 May 2013 03:16:21 +0000
Received: from mail-oa0-f54.google.com ([209.85.219.54]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1Ub0IG-0003iA-2s for ietf-http-wg@w3.org; Sat, 11 May 2013 03:16:20 +0000
Received: by mail-oa0-f54.google.com with SMTP id o17so1146718oag.27 for <ietf-http-wg@w3.org>; Fri, 10 May 2013 20:15:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=Wu2XgJ/8pNbbHtqE7wvDGcMC1d3EDvjMKmLhRnct6dY=; b=c4wME3xPJrVOYl3nJeSEcwolh00I43F0/qTNtLloTwS1giIJzvVG6gmuDy70bMmLA5 v1E+ccrwNkjeG+66b4ZqeIy80GHQ3jTl6OUZEMtDz03CKLTxrhD6/hMoAyvBpRRzxWY5 4jdvm9wo0T31nFgQtXejm6YxlbTz4P8lKKuFAxL1xbJsYeYTA0kAsX9hAJm3NfvKNzTJ O1yFTsraAoJ4Es9Zz3usx9U5QPJXkBjdBNKDfsWaBRiP7gibLnYfgHtLFVlNUFYp/ZTs nuaSOcYDTSdNCVtnqF4mcqCQ5Bcp7NG7Z92S1HqqOLAZCvo4STJpM5V7ZWkReLASuaEJ L3PQ==
MIME-Version: 1.0
X-Received: by 10.60.85.74 with SMTP id f10mr8446184oez.32.1368242154245; Fri, 10 May 2013 20:15:54 -0700 (PDT)
Received: by 10.76.130.139 with HTTP; Fri, 10 May 2013 20:15:54 -0700 (PDT)
In-Reply-To: <CABkgnnXVMnL=i2p_mDzcWLP0TNpV_wp7XhsuOTA+Tayv1aBv3Q@mail.gmail.com>
References: <CABP7RbcfTjN5QFFuGm-P-rQMpAR3FGSC58WCy3qKn+29YCjn+w@mail.gmail.com> <CAA4WUYiwNSzvrY1LF_Sex_82TSDwMbTvYqo7LyKfBAOu0j4pfQ@mail.gmail.com> <CABP7RbdqnH0JK-UaMiaR5rLvZo8txywEcXXSUXa_y95hrLC5yA@mail.gmail.com> <CABP7Rbd-VfTFYurZ-JEKjHKOeKvZCKoYLGMXf+0mi-_wbdKYqA@mail.gmail.com> <CAA4WUYgfu=rcji-bdxNPsE9KCE4T67+vN9b0iojnvycx5R-StA@mail.gmail.com> <CABkgnnX=AemYGrBzWGX1VEUgKKrk+hR6YV0jg9qVMSdPiimBAA@mail.gmail.com> <CAFA1p16FHaSf7b1=mhe_Cb=ZqV1m0HVwkQNdW+pkJ0OkA9L-5A@mail.gmail.com> <CAP+FsNdifoF3aqQLB-EZjYqL3O2_uNEmNJ_+zAktu9zapKmT7w@mail.gmail.com> <CABP7RbcF3VXuhvP5StN9hHVj4K-2WMvBr37ur3iHmH-=2WAbHw@mail.gmail.com> <CAA4WUYgFccqU5-65mFPF_3i4OOROZQCdS+tEUeDMk4HP4JJX5Q@mail.gmail.com> <CABP7RbcQMEhu9ciuTQoR1dRw3UiUB=E_AeMjaNrhFgMPmmi+EQ@mail.gmail.com> <CAA4WUYjFgJ28O5Jb58a5eodJMWe+CSe18Ow1wpETWJcjmedXRQ@mail.gmail.com> <CABP7RbdnnCiDSDt5CwPfRYx-BGgz8eoMUDa2J4xaWztHkCbe+w@mail.gmail.com> <CAP+FsNfHEUsdqQaAg8-g6vLb=AikHQG4Y5BywJ2w1FQEon+LrQ@mail.gmail.com> <CABkgnnXVMnL=i2p_mDzcWLP0TNpV_wp7XhsuOTA+Tayv1aBv3Q@mail.gmail.com>
Date: Fri, 10 May 2013 20:15:54 -0700
Message-ID: <CAP+FsNda_dzPqe1+e3DJsAtvi=xRH=dtdr0tnOJvCoWdF6MCjg@mail.gmail.com>
From: Roberto Peon <grmocg@gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: James M Snell <jasnell@gmail.com>, =?UTF-8?B?V2lsbGlhbSBDaGFuICjpmYjmmbrmmIwp?= <willchan@chromium.org>, Poul-Henning Kamp <phk@phk.freebsd.dk>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>, Hasan Khalil <hkhalil@google.com>
Content-Type: multipart/alternative; boundary=089e0111b71c9219ea04dc68b3f3
Received-SPF: pass client-ip=209.85.219.54; envelope-from=grmocg@gmail.com; helo=mail-oa0-f54.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.653, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1Ub0IG-0003iA-2s ea2603af09ff4c58fbf403f348367a19
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Proposal: New Frame Size Text (was: Re: Design Issue: Frame Size Items)
Archived-At: <http://www.w3.org/mid/CAP+FsNda_dzPqe1+e3DJsAtvi=xRH=dtdr0tnOJvCoWdF6MCjg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17947
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

For implementations that don't care about memory efficiency, you're right
that they'll unencode the huffman-encoded strings. :)

The majority of non-efficiency-oriented APIs I've used treated the overhead
of HTTP and IO as insignificant, and likely just wouldn't care about this
at all.
-=R


On Fri, May 10, 2013 at 8:01 PM, Martin Thomson <martin.thomson@gmail.com>wrote;wrote:

> On 10 May 2013 18:30, Roberto Peon <grmocg@gmail.com> wrote:
> > The memory needed for header interpretation will, for a decent
> > implementation, be at worst the sum of the size of the compression
> context
> > and the size of the receive buffer-- it will not expand once decompressed
> > unless a lot of useless copying is being done.
>
> I was going to say the same thing until I realized that most APIs will
> be forced to decode Huffman-encoded strings to present.  Some
> implementations might avoid this entirely, others might defer
> decompression, or something along those lines, but there is probably
> going to be at least some exposure to the decompressed data.
>