Re: Static Table Entries

Martin Thomson <martin.thomson@gmail.com> Fri, 08 August 2014 02:42 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 (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CFC581B294F for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 7 Aug 2014 19:42:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.002
X-Spam-Level:
X-Spam-Status: No, score=-7.002 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id G634d2drwzsT for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 7 Aug 2014 19:42:34 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 44FB61A0411 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 7 Aug 2014 19:42:33 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1XFa5P-0007MP-5v for ietf-http-wg-dist@listhub.w3.org; Fri, 08 Aug 2014 02:39:19 +0000
Resent-Date: Fri, 08 Aug 2014 02:39:19 +0000
Resent-Message-Id: <E1XFa5P-0007MP-5v@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1XFa52-0007Lc-7P for ietf-http-wg@listhub.w3.org; Fri, 08 Aug 2014 02:38:56 +0000
Received: from mail-we0-f175.google.com ([74.125.82.175]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1XFa51-0005ZQ-7G for ietf-http-wg@w3.org; Fri, 08 Aug 2014 02:38:56 +0000
Received: by mail-we0-f175.google.com with SMTP id t60so5044695wes.20 for <ietf-http-wg@w3.org>; Thu, 07 Aug 2014 19:38:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Yk36p5Jco4hRZbRA+mvWrg3iSbDH9bs9v5WGIv0eXlw=; b=CaQ+ewVp0dccL4vGW5LnV+N9guYTbNlMihgvhNTFTfZ9wtlzORl0cdm0AGqo6Qq7up ef8QnB8+P6VrVZi3zpmwnyp4X8ovV5k75uFb8F7EQwS8Ss/b5PDWum3ZbIfVbGkQ4nJQ Jc1i0u4tr1jwbjpOFVfVhA54vcm5JspvpkTJhG/hMBecftSCRNR55puCbbth2oqPqZuE A2CVM1t1SAeoyxD0KwTIGxw6QjDgq02Lh2BHnUQUdhadmSgmqXhaXu9xrfD5Ywx14ubM bf4TWXFp2xvpMXfeeMI/cEXUysSb3fwotobkUrGd5RlgJ1jnoyO/vPAZd2KCVMIMSLTn RTjw==
MIME-Version: 1.0
X-Received: by 10.194.110.7 with SMTP id hw7mr28569237wjb.38.1407465508812; Thu, 07 Aug 2014 19:38:28 -0700 (PDT)
Received: by 10.194.6.229 with HTTP; Thu, 7 Aug 2014 19:38:28 -0700 (PDT)
Received: by 10.194.6.229 with HTTP; Thu, 7 Aug 2014 19:38:28 -0700 (PDT)
In-Reply-To: <CAH_y2NFqUpFreMM8v4BMZwkuEuasdeCpugqsQBxgw+FkjPc2bA@mail.gmail.com>
References: <D00955B6.38F98%Robby.Simpson@GE.com> <CABkgnnVi7E3BMfYL1V3sS0Dn5WGJ2MaN1aCsxFoQmNtV4EfNog@mail.gmail.com> <D0093C76.9199%sakulkar@akamai.com> <CABkgnnUo7dsPGwEERCZZPX2Fhb3tf8FbUnwCvEfBRezWPtxmmQ@mail.gmail.com> <EB630F16-4D1B-4392-8621-A56C01D0C1FF@iaea.org> <CABkgnnUwrTo6-aGF8vuUmO56gRDgE1jqGr8hTwY=VWYv43uOQw@mail.gmail.com> <CAH_y2NFqUpFreMM8v4BMZwkuEuasdeCpugqsQBxgw+FkjPc2bA@mail.gmail.com>
Date: Thu, 07 Aug 2014 19:38:28 -0700
Message-ID: <CABkgnnUk=-Zad9UtNGDVDnLi62zfrT6PeyVbj_=dBNyT80o=wg@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Greg Wilkins <gregw@intalio.com>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="047d7bf10adeafbf6b05001519d0"
Received-SPF: pass client-ip=74.125.82.175; envelope-from=martin.thomson@gmail.com; helo=mail-we0-f175.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.738, 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 1XFa51-0005ZQ-7G daff8d191022b097060b3e33f9b55f1d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Static Table Entries
Archived-At: <http://www.w3.org/mid/CABkgnnUk=-Zad9UtNGDVDnLi62zfrT6PeyVbj_=dBNyT80o=wg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/26569
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>

Thanks Greg, I opened https://github.com/http2/http2-spec/issues/587 ,
which I will mark as non-blocking.
On Aug 7, 2014 6:10 PM, "Greg Wilkins" <gregw@intalio.com> wrote:

>
>
>
> On 8 August 2014 09:31, Martin Thomson <martin.thomson@gmail.com> wrote:
>
>> On 7 August 2014 15:59,  <K.Morgan@iaea.org> wrote:
>> > I think we should at least keep a list (wiki page) of these micro
>> optimizations so that we could discuss further if the draft doesn't make it
>> out if last call for some reason.
>>
>> Last call doesn't mean that we are forbidden from discussing changes.
>> It's not special in that regard.  It's primarily time that causes the
>> threshold to be raised.  If implementations have to go back and make
>> other changes, then it definitely would be easier to throw in a few
>> small optimizations like this, even larger ones (like reworking the
>> HPACK opcode sequences), but I predict that any change, no matter how
>> small, will get some resistance.
>>
>
>
>
> I did some rough frequency analysis on the test data and came up with
> extra values for:
>
> "accept-language","en-US,en;q=0.5"
> "accept-ranges","bytes"
> "accept","image/png,image/*;q=0.8,*/*;q=0.5"
> "age","0"
> "allow","GET"
> "cache-control","no-cache"
> "content-disposition","attachment"
> "content-encoding","gzip"
> "content-language","en-US"
> "content-length","0"
> "content-type","image/jpeg"
> "vary","Accept-Encoding"
>
> Adding these values improved compression of the test data by 1.1%
>
> However, removing anything that looks like linguistic imperialism and
> making a few more neutral choices gives:
>
> "accept-ranges","bytes"
> "accept","*/*"
> "age","0"
> "allow","GET"
> "cache-control","no-cache"
> "content-disposition","attachment"
> "content-encoding","gzip"
> "content-length","0"
> "content-type","application/x-javascript"
> "vary","Accept-Encoding"
>
> This still achieved 0.9% saving.
>
> However I'd like to see some rigour applied to selecting the most frequent
> value to apply, and I don't think the test data is large enough nor
> representative enough for this.
>
>
> So I think this is a good change to make  IFF we are breaking the protocol
> for another reason, but it's probably not good enough to justify breaking
> on it's own (unless someone can produce hard numbers).
>
> So I'm happy to put this one on a list of breaking changes to make if we
> are going to make breaking changes.
>
>
> cheers
>
>
>
>
>
>
>
>
>
> --
> Greg Wilkins <gregw@intalio.com>
> http://eclipse.org/jetty HTTP, SPDY, Websocket server and client that
> scales
> http://www.webtide.com  advice and support for jetty and cometd.
>