Re: Straw Poll: Restore Header Table and Static Table Indices
Greg Wilkins <gregw@intalio.com> Tue, 21 October 2014 13:40 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 CBFCE1A6EF8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 21 Oct 2014 06:40:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.289
X-Spam-Level:
X-Spam-Status: No, score=-6.289 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, 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 NyrtTcQLV3_L for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 21 Oct 2014 06:40:11 -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 CC64A1A3BA6 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 21 Oct 2014 06:40:10 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1XgZcX-00062G-VA for ietf-http-wg-dist@listhub.w3.org; Tue, 21 Oct 2014 13:37:05 +0000
Resent-Date: Tue, 21 Oct 2014 13:37:05 +0000
Resent-Message-Id: <E1XgZcX-00062G-VA@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <gregw@intalio.com>) id 1XgZcS-00061D-8I for ietf-http-wg@listhub.w3.org; Tue, 21 Oct 2014 13:37:00 +0000
Received: from mail-wi0-f176.google.com ([209.85.212.176]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <gregw@intalio.com>) id 1XgZcQ-0006Sl-N1 for ietf-http-wg@w3.org; Tue, 21 Oct 2014 13:37:00 +0000
Received: by mail-wi0-f176.google.com with SMTP id hi2so10134833wib.3 for <ietf-http-wg@w3.org>; Tue, 21 Oct 2014 06:36:31 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=8c4OqhVT6AumPVTJk/sJ1c7FcUAfrj051NXlNedMnkg=; b=egphoCJjx4Gg5LVCUtMJxm5aPvojjYnWhES6QR54a1mgVRXd/xo+J1vf1U6QSo1/4b DIgGZWi7ftBi4p8MzMFV8yVGTMTYRq1QdaGKlKx3eX4ulpCQWzho5znzlJC6nCaVjBKj SHsA96+4nmCuvsoD/BA8cWCy8z5ZWl3iyN6H2FjYA7aHNAlHBpiCYQ/nneVSNA9XmPYc 1qgJeP0yP1B2uFK6f+oa2IAxdMOx2/IuPWux6BlinhxN29SXN2kvCSOFK/Lp1QVp5OVT 5fv2cNP+Pp+MTrZlMxSUBH+hFbGy+wZgx//GIKmS0witwJUdplKUz9emgvSqsnL+WQ65 aLgA==
X-Gm-Message-State: ALoCoQmfyKf6yeyrMVYqqiGgcSa6UgHMTRN3uGQ9Zm+TnWq5YMi3c3IpeRszPfY3xw2SAMq8Mldg
MIME-Version: 1.0
X-Received: by 10.180.149.130 with SMTP id ua2mr29842495wib.31.1413898590514; Tue, 21 Oct 2014 06:36:30 -0700 (PDT)
Received: by 10.194.164.168 with HTTP; Tue, 21 Oct 2014 06:36:30 -0700 (PDT)
In-Reply-To: <20141021094032.GB30397@1wt.eu>
References: <CAHzwyDuuN=-DyGiWAfttwq7O_zUGOE=7kVf5J=qu6i_-A9ezfg@mail.gmail.com> <543E0400.8080009@treenet.co.nz> <20141015201540.GB980@1wt.eu> <6C71876BDCCD01488E70A2399529D5E53BF5F842@ADELE.crf.canon.fr> <20141016091626.GC3079@1wt.eu> <34008D72-5800-412E-A276-81C6C7BFA9E2@mnot.net> <20141020165353.GA25743@1wt.eu> <8F120E2F-704E-44CB-ACF2-C743B870B2B6@mnot.net> <CAP+FsNdOHVj=YTE35Vj7mbED0OKghd-mpnFZSMcZNBM3JybJDg@mail.gmail.com> <20141021092505.GA30397@1wt.eu> <20141021094032.GB30397@1wt.eu>
Date: Wed, 22 Oct 2014 00:36:30 +1100
Message-ID: <CAH_y2NFmmky-jTrjnAEDN751WGUJqX80mufJaJ2YtvQ-05JoGg@mail.gmail.com>
From: Greg Wilkins <gregw@intalio.com>
To: Willy Tarreau <w@1wt.eu>
Cc: Roberto Peon <grmocg@gmail.com>, Mark Nottingham <mnot@mnot.net>, RUELLAN Herve <Herve.Ruellan@crf.canon.fr>, Amos Jeffries <squid3@treenet.co.nz>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="001a11c3812a3ca7450505eeeb1a"
Received-SPF: permerror client-ip=209.85.212.176; envelope-from=gregw@intalio.com; helo=mail-wi0-f176.google.com
X-W3C-Hub-Spam-Status: No, score=-3.8
X-W3C-Hub-Spam-Report: AWL=-3.078, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7
X-W3C-Scan-Sig: lisa.w3.org 1XgZcQ-0006Sl-N1 a5146f6c84f6e6be04bcdba0a6b3f9fb
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/CAH_y2NFmmky-jTrjnAEDN751WGUJqX80mufJaJ2YtvQ-05JoGg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/27662
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>
Willy, I actually think that literal without/never indexed should be favoured over literal indexed or at least on event footing, because by nature the literal indexed headers are sent only once and then used by index, while the literal without/never indexed headers are sent literally every time they are used. Thus I would think something like: Indexed Header: +---+---+---+---+---+---+---+---+ | 1 | D | Index (6+) | +---+---------------------------+ Literal Never Indexed: +---+---+---+---+---+---+---+---+ | 0 | 0 | 0 | D | Index (4+) | +---+---------------------------+ Literal Not Indexed: +---+---+---+---+---+---+---+---+ | 0 | 0 | 1 | D | Index (4+) | +---+---------------------------+ Literal Indexed: +---+---+---+---+---+---+---+---+ | 0 | 1 | 0 | D | Index (4+) | +---+---------------------------+ Max Dynamic Table size change: +---+---+---+---+---+---+---+---+ | 0 | 1 | 1 | Index (5+) | +---+---------------------------+ I believe that most 62 static slots can easily be filled with values that will be used. I'll come up with a suggestion for this tomorrow. cheers On 21 October 2014 20:40, Willy Tarreau <w@1wt.eu> wrote: > On Tue, Oct 21, 2014 at 11:25:05AM +0200, Willy Tarreau wrote: > > Hi Roberto, > > > > On Tue, Oct 21, 2014 at 12:01:19AM -0700, Roberto Peon wrote: > > > While I prefer the indexing scheme of the previous draft, this proposal > > > would be better than what is currently drafted. > > > > Thanks. Do you know how the following representations are ordered in > > terms of frequency/probability ? > > > > - Indexed Header Field Representation > > - Literal Header Field with Incremental Indexing > > - Literal Header Field without Indexing > > - Literal Header Field never Indexed > > > > I would guess they should appear in the order above, though that's not > > obvious to me. And I'm still sad at the idea of leaving many encoding > > values unused (eg: static header values above 16). Thus, we'll typically > > have 48 possible values out of 256 for the first byte that will never be > > emitted just for the indexed headers alone, that's a 20% waste, and I > > really think we can do better without making anything more complex. I > > just need to ensure I don't propose something stupid. > > For example something like this (CCing Greg who also has concerns about > all this), which supports a single-byte encoding for : > - 14 or the 16 static headers with values > - all 62 static headers for literals > - 62 dynamic headers for literals > > +---+---+----------------------+ > | 1 | D | index 6+ | literal with incremetal indexing > +---+---+----------------------+ > > +---+---+----------------------+ > | 0 | 1 | index 6+ | indexed dynamic header > +---+---+----------------------+ > > +---+---+---+---+--------------+ > | 0 | 0 | 1 | 1 | index 4+ | indexed static header > +---+---+---+---+--------------+ > > +---+---+---+---+--------------+ > | 0 | 0 | 1 | 0 | size 4+ | max dynamic table size change > +---+---+---+---+--------------+ > > +---+---+---+---+---+----------+ > | 0 | 0 | 0 | 0 | D | index 3+ | literal without indexing > +---+---+---+---+---+----------+ > > +---+---+---+---+---+----------+ > | 0 | 0 | 0 | 1 | D | index 3+ | literal never indexed > +---+---+---+---+---+----------+ > > Willy > > -- Greg Wilkins <gregw@intalio.com> @ Webtide - *an Intalio subsidiary* http://eclipse.org/jetty HTTP, SPDY, Websocket server and client that scales http://www.webtide.com advice and support for jetty and cometd.
- Re: Restore Header Table and Static Table Indices Nicholas Hurley
- Restore Header Table and Static Table Indices Jeff Pinner
- Re: Restore Header Table and Static Table Indices Kulkarni, Saurabh
- Re: Restore Header Table and Static Table Indices Poul-Henning Kamp
- Straw Poll: Restore Header Table and Static Table… Mark Nottingham
- Re: Restore Header Table and Static Table Indices Ludin, Stephen
- Re: Restore Header Table and Static Table Indices Michael Sweet
- Re: Restore Header Table and Static Table Indices Greg Wilkins
- Re: Restore Header Table and Static Table Indices Daniel Stenberg
- Re: Restore Header Table and Static Table Indices Simpson, Robby (GE Energy Management)
- Re: Restore Header Table and Static Table Indices Roberto Peon
- RE: Restore Header Table and Static Table Indices Mike Bishop
- Re: Straw Poll: Restore Header Table and Static T… Willy Tarreau
- Re: Straw Poll: Restore Header Table and Static T… Shigeki Ohtsu
- Re: Straw Poll: Restore Header Table and Static T… Greg Wilkins
- Re: Straw Poll: Restore Header Table and Static T… Mark Nottingham
- Re: Straw Poll: Restore Header Table and Static T… Willy Tarreau
- Re: Straw Poll: Restore Header Table and Static T… Mark Nottingham
- Re: Straw Poll: Restore Header Table and Static T… Willy Tarreau
- Re: Straw Poll: Restore Header Table and Static T… Mark Nottingham
- Re: Straw Poll: Restore Header Table and Static T… Willy Tarreau
- Re: Straw Poll: Restore Header Table and Static T… Mark Nottingham
- Re: Straw Poll: Restore Header Table and Static T… Amos Jeffries
- RE: Straw Poll: Restore Header Table and Static T… K.Morgan
- Re: Straw Poll: Restore Header Table and Static T… Nicholas Hurley
- Re: Straw Poll: Restore Header Table and Static T… Willy Tarreau
- Re: Straw Poll: Restore Header Table and Static T… Nicholas Hurley
- RE: Straw Poll: Restore Header Table and Static T… RUELLAN Herve
- Re: Straw Poll: Restore Header Table and Static T… Willy Tarreau
- Re: Straw Poll: Restore Header Table and Static T… Greg Wilkins
- Re: Straw Poll: Restore Header Table and Static T… Mark Nottingham
- Re: Straw Poll: Restore Header Table and Static T… Roberto Peon
- Re: Straw Poll: Restore Header Table and Static T… Greg Wilkins
- Re: Straw Poll: Restore Header Table and Static T… Mark Nottingham
- Re: Straw Poll: Restore Header Table and Static T… Willy Tarreau
- Re: Straw Poll: Restore Header Table and Static T… Roberto Peon
- Re: Straw Poll: Restore Header Table and Static T… Poul-Henning Kamp
- Re: Straw Poll: Restore Header Table and Static T… Willy Tarreau
- Re: Straw Poll: Restore Header Table and Static T… Greg Wilkins
- Re: Straw Poll: Restore Header Table and Static T… Adrian Cole
- Re: Restore Header Table and Static Table Indices Adrian Cole
- Re: Straw Poll: Restore Header Table and Static T… Greg Wilkins
- Re: Straw Poll: Restore Header Table and Static T… Willy Tarreau
- Re: Straw Poll: Restore Header Table and Static T… Adrian Cole
- Re: Straw Poll: Restore Header Table and Static T… Adrian Cole
- Re: Straw Poll: Restore Header Table and Static T… Amos Jeffries
- Re: Straw Poll: Restore Header Table and Static T… Poul-Henning Kamp
- Re: Straw Poll: Restore Header Table and Static T… Adrian Cole
- RE: Straw Poll: Restore Header Table and Static T… RUELLAN Herve
- Re: Straw Poll: Restore Header Table and Static T… Poul-Henning Kamp
- Re: Straw Poll: Restore Header Table and Static T… Simpson, Robby (GE Energy Management)
- Re: Straw Poll: Restore Header Table and Static T… Simpson, Robby (GE Energy Management)
- Re: Straw Poll: Restore Header Table and Static T… Willy Tarreau
- Re: Straw Poll: Restore Header Table and Static T… Jason Greene
- RE: Straw Poll: Restore Header Table and Static T… RUELLAN Herve
- Re: Straw Poll: Restore Header Table and Static T… Willy Tarreau
- Re: Straw Poll: Restore Header Table and Static T… Mark Nottingham
- Re: Straw Poll: Restore Header Table and Static T… Willy Tarreau
- Re: Straw Poll: Restore Header Table and Static T… Willy Tarreau
- Re: Straw Poll: Restore Header Table and Static T… Poul-Henning Kamp
- Re: Straw Poll: Restore Header Table and Static T… Willy Tarreau
- Re: Straw Poll: Restore Header Table and Static T… Greg Wilkins
- Re: Straw Poll: Restore Header Table and Static T… Mark Nottingham
- Re: Straw Poll: Restore Header Table and Static T… Willy Tarreau
- Re: Straw Poll: Restore Header Table and Static T… Poul-Henning Kamp
- Re: Straw Poll: Restore Header Table and Static T… Roberto Peon
- Re: Straw Poll: Restore Header Table and Static T… Willy Tarreau
- Re: Straw Poll: Restore Header Table and Static T… Poul-Henning Kamp
- Re: Straw Poll: Restore Header Table and Static T… Willy Tarreau
- Re: Straw Poll: Restore Header Table and Static T… Willy Tarreau
- Re: Straw Poll: Restore Header Table and Static T… Julian Reschke
- Re: Straw Poll: Restore Header Table and Static T… Willy Tarreau
- Re: Straw Poll: Restore Header Table and Static T… Poul-Henning Kamp
- Re: Straw Poll: Restore Header Table and Static T… Willy Tarreau
- Re: Straw Poll: Restore Header Table and Static T… Greg Wilkins
- Re: Straw Poll: Restore Header Table and Static T… Willy Tarreau
- Re: Straw Poll: Restore Header Table and Static T… Jason Greene
- timestamps encoding (was: Re: Straw Poll: Restore… Willy Tarreau
- #578 [was: Straw Poll: Restore Header Table and S… Mark Nottingham
- Re: timestamps encoding (was: Re: Straw Poll: Res… Martin Nilsson
- Re: timestamps encoding Amos Jeffries
- Re: #578 [was: Straw Poll: Restore Header Table a… Amos Jeffries
- Re: #578 [was: Straw Poll: Restore Header Table a… Mark Nottingham
- Re: timestamps encoding Martin Nilsson