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

Willy Tarreau <w@1wt.eu> Wed, 15 October 2014 20:20 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 6315E1ACC7F for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 15 Oct 2014 13:20:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.912
X-Spam-Level:
X-Spam-Status: No, score=-6.912 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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 Jco06v8ycIiW for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 15 Oct 2014 13:20:35 -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 03B991ACC81 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 15 Oct 2014 13:20:18 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1XeUzz-0001se-6r for ietf-http-wg-dist@listhub.w3.org; Wed, 15 Oct 2014 20:16:43 +0000
Resent-Date: Wed, 15 Oct 2014 20:16:43 +0000
Resent-Message-Id: <E1XeUzz-0001se-6r@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1XeUzq-0001rv-Lr for ietf-http-wg@listhub.w3.org; Wed, 15 Oct 2014 20:16:34 +0000
Received: from 1wt.eu ([62.212.114.60]) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1XeUzp-0005YS-OT for ietf-http-wg@w3.org; Wed, 15 Oct 2014 20:16:34 +0000
Received: (from willy@localhost) by mail.home.local (8.14.4/8.14.4/Submit) id s9FKFfWS001205; Wed, 15 Oct 2014 22:15:41 +0200
Date: Wed, 15 Oct 2014 22:15:41 +0200
From: Willy Tarreau <w@1wt.eu>
To: Amos Jeffries <squid3@treenet.co.nz>
Cc: ietf-http-wg@w3.org
Message-ID: <20141015201540.GB980@1wt.eu>
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>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <543E0400.8080009@treenet.co.nz>
User-Agent: Mutt/1.4.2.3i
Received-SPF: pass client-ip=62.212.114.60; envelope-from=w@1wt.eu; helo=1wt.eu
X-W3C-Hub-Spam-Status: No, score=-3.1
X-W3C-Hub-Spam-Report: AWL=-3.053, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01
X-W3C-Scan-Sig: lisa.w3.org 1XeUzp-0005YS-OT e64e99552c28b4cbc05653a90ba51189
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/20141015201540.GB980@1wt.eu>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/27629
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>

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!

> (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