RE: Straw Poll: Restore Header Table and Static Table Indices

RUELLAN Herve <Herve.Ruellan@crf.canon.fr> Thu, 16 October 2014 09:15 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 5D7D01A1AB6 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 16 Oct 2014 02:15:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.562
X-Spam-Level:
X-Spam-Status: No, score=-6.562 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_FR=0.35, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 RxcfQdPtfZ56 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 16 Oct 2014 02:15:07 -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 1165A1A014F for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 16 Oct 2014 02:15:06 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Xeh5l-0006ba-HY for ietf-http-wg-dist@listhub.w3.org; Thu, 16 Oct 2014 09:11:29 +0000
Resent-Date: Thu, 16 Oct 2014 09:11:29 +0000
Resent-Message-Id: <E1Xeh5l-0006ba-HY@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <Herve.Ruellan@crf.canon.fr>) id 1Xeh5f-0006ar-Ay for ietf-http-wg@listhub.w3.org; Thu, 16 Oct 2014 09:11:23 +0000
Received: from inari-msr.crf.canon.fr ([194.2.158.67]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <Herve.Ruellan@crf.canon.fr>) id 1Xeh5e-0006Ug-Bf for ietf-http-wg@w3.org; Thu, 16 Oct 2014 09:11:23 +0000
Received: from mir-msr.corp.crf.canon.fr (mir-msr.corp.crf.canon.fr [172.19.77.98]) by inari-msr.crf.canon.fr (8.13.8/8.13.8) with ESMTP id s9G99wNR013800; Thu, 16 Oct 2014 11:09:58 +0200
Received: from ADELE.crf.canon.fr (adele.fesl2.crf.canon.fr [172.19.70.17]) by mir-msr.corp.crf.canon.fr (8.13.8/8.13.8) with ESMTP id s9G99uI5030611; Thu, 16 Oct 2014 11:09:56 +0200
Received: from ADELE.crf.canon.fr ([::1]) by ADELE.crf.canon.fr ([::1]) with mapi id 14.03.0210.002; Thu, 16 Oct 2014 11:09:56 +0200
From: RUELLAN Herve <Herve.Ruellan@crf.canon.fr>
To: Willy Tarreau <w@1wt.eu>, Amos Jeffries <squid3@treenet.co.nz>
CC: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Thread-Topic: Straw Poll: Restore Header Table and Static Table Indices
Thread-Index: AQHP4XcclTjsEkkraU+xK/nlbGwVVZwjUZiAgAieGYCAAJ7wAIAAjOeAgAAIlQCAApzigIAAucWAgAAKYICAAANvAIAAAkwAgAD6QYCAAPkmsA==
Date: Thu, 16 Oct 2014 09:09:55 +0000
Message-ID: <6C71876BDCCD01488E70A2399529D5E53BF5F842@ADELE.crf.canon.fr>
References: <987FB86A-EF8B-4CD1-A9A7-52A9163E8CB3@mnot.net> <EBB30C88-7EBD-400F-9591-B646B4D3687B@mnot.net> <CAP+FsNeJU6aciA+UV3sQ318e4=fXxv9zZbsDZ1jXmYstz6XwaQ@mail.gmail.com> <E465C1C7-20DF-4F78-9936-9C914042920A@mnot.net> <20141013012326.GD13217@1wt.eu> <CAP+FsNci+YbQ9fP9LiJ1BBUSDryWOqi4A4YsKyORskY7pK0Fmg@mail.gmail.com> <CAHzwyDuAeMJe_BW0kZkLUHRn6xAN8LO_uno_ZL0TmCLgSaYbkg@mail.gmail.com> <CAH_y2NHhDTDtM4+DvWAf66GiO7of4H+ouMhxzseGODhfCSchXg@mail.gmail.com> <CAHzwyDuuN=-DyGiWAfttwq7O_zUGOE=7kVf5J=qu6i_-A9ezfg@mail.gmail.com> <543E0400.8080009@treenet.co.nz> <20141015201540.GB980@1wt.eu>
In-Reply-To: <20141015201540.GB980@1wt.eu>
Accept-Language: en-US, fr-FR
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [172.20.8.76]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Received-SPF: none client-ip=194.2.158.67; envelope-from=Herve.Ruellan@crf.canon.fr; helo=inari-msr.crf.canon.fr
X-W3C-Hub-Spam-Status: No, score=-3.4
X-W3C-Hub-Spam-Report: AWL=-3.439, T_RP_MATCHES_RCVD=-0.01
X-W3C-Scan-Sig: maggie.w3.org 1Xeh5e-0006Ug-Bf ef74464e8a2bd645684ba25ccad9d384
X-Original-To: ietf-http-wg@w3.org
Subject: RE: Straw Poll: Restore Header Table and Static Table Indices
Archived-At: <http://www.w3.org/mid/6C71876BDCCD01488E70A2399529D5E53BF5F842@ADELE.crf.canon.fr>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/27631
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>

> -----Original Message-----
> From: Willy Tarreau [mailto:w@1wt.eu]
> Sent: mercredi 15 octobre 2014 22:16
> To: Amos Jeffries
> Cc: ietf-http-wg@w3.org
> Subject: Re: Straw Poll: Restore Header Table and Static Table Indices
> 
> On Wed, Oct 15, 2014 at 06:20:00PM +1300, Amos Jeffries wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On 15/10/2014 6:11 p.m., Adrian Cole wrote:
> > >> If an argument can be made that 2 byte encodings are still too
> > >> large for dynamic headers, then instead of flipping back let's
> > >> investigate how the 1 byte slots can be shared between static and
> > >> dynamic.
> > > FWIW, I'm happy to implement an alternate approach, if one comes
> > > out. Thanks, Greg.
> > >
> >
> > Alternative approach has already been proposed. That the first bit of
> > the index is used as a flag to indicate static or dynamic table for
> > the remaning 7+ bits.
> >
> > That not only puts both on an even bias, but expands the range of
> > values getting 1-byte encodings in either table and removes the need
> > for the math complexity people are disliking.
> >
> > 1 stone, 3 birds.
> 
> I totally agree with this except that I don't see where you take that
> spare bit from, that's what initially led me to rethink the encoding.
> So if you konw where to find one bit, +1 for me obviously!

Everywhere where there's an index into the static/dynamic table, reduce the index size by 1 bit and use this bit as a flag to find which table is used.

Hervé.

> > (The paranoid in me can only think that it is being repeatedly
> > rejected despite evidence of its usefulness because of who proposed it.)
> 
> No need to be paranoid here, the most common reason is that it's hard to
> explain our thoughts and most of the time it ends up with each other
> understanding something different and either useless or scary. Noone's
> to blame for this, human languages are not appropriate for discussing
> bits and bytes.
> 
> Thanks,
> Willy
>