W3C home > Mailing lists > Public > ietf-http-wg@w3.org > October to December 2013

Re: Question about: 4.1.1 Integer representation

From: Martin Thomson <martin.thomson@gmail.com>
Date: Fri, 18 Oct 2013 09:47:26 -0700
Message-ID: <CABkgnnWqh=DUQtkeioWDaxco70D_21CdXtSnT7iDU+fA=3nKJA@mail.gmail.com>
To: Roberto Peon <grmocg@gmail.com>
Cc: Frédéric Kayser <f.kayser@free.fr>, HTTP Working Group <ietf-http-wg@w3.org>
On 18 October 2013 09:09, Roberto Peon <grmocg@gmail.com> wrote:
> A fair bit of efficiency is gained by allowing the n-bit prefix to encode
> values since most values for within that first byte.
> The rest of the int is in a well known and well supported format.

That's the key.  Lower efficiency for larger values is acceptable if
you can get more into a single byte.  That is 255 values in the first
byte before continuations kick in, against 127 values.  Most values we
have fit into that first byte and we want to keep it that way.
Received on Friday, 18 October 2013 16:47:53 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 2 February 2023 18:43:38 UTC