Re: bohe and delta experimentation...

"Poul-Henning Kamp" <phk@phk.freebsd.dk> Thu, 17 January 2013 11:05 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 (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D241D21F8941 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 17 Jan 2013 03:05:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.654
X-Spam-Level:
X-Spam-Status: No, score=-10.654 tagged_above=-999 required=5 tests=[AWL=-0.055, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id N-+93p7Z2zwJ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 17 Jan 2013 03:05:00 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 1DDC221F8948 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 17 Jan 2013 03:05:00 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TvnFy-0005vt-DS for ietf-http-wg-dist@listhub.w3.org; Thu, 17 Jan 2013 11:03:38 +0000
Resent-Date: Thu, 17 Jan 2013 11:03:38 +0000
Resent-Message-Id: <E1TvnFy-0005vt-DS@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <phk@phk.freebsd.dk>) id 1TvnFv-0005ur-2I for ietf-http-wg@listhub.w3.org; Thu, 17 Jan 2013 11:03:35 +0000
Received: from phk.freebsd.dk ([130.225.244.222]) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <phk@phk.freebsd.dk>) id 1TvnFu-0003Hr-D7 for ietf-http-wg@w3.org; Thu, 17 Jan 2013 11:03:34 +0000
Received: from critter.freebsd.dk (critter.freebsd.dk [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id 4FC2A8A50F; Thu, 17 Jan 2013 11:03:12 +0000 (UTC)
Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.5/8.14.5) with ESMTP id r0HB3BNu081952; Thu, 17 Jan 2013 11:03:11 GMT (envelope-from phk@phk.freebsd.dk)
To: James M Snell <jasnell@gmail.com>
cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
In-reply-to: <CABP7RbeNFm3ZHdtDBUJb3idJjFj0q+fxDPzxKZBhSJqXw8zWaQ@mail.gmail.com>
From: Poul-Henning Kamp <phk@phk.freebsd.dk>
References: <CABP7RbeNFm3ZHdtDBUJb3idJjFj0q+fxDPzxKZBhSJqXw8zWaQ@mail.gmail.com>
Date: Thu, 17 Jan 2013 11:03:11 +0000
Message-ID: <81951.1358420591@critter.freebsd.dk>
Received-SPF: none client-ip=130.225.244.222; envelope-from=phk@phk.freebsd.dk; helo=phk.freebsd.dk
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-3.450, RP_MATCHES_RCVD=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TvnFu-0003Hr-D7 ff787b34860b93555582f1f8b847f146
X-Original-To: ietf-http-wg@w3.org
Subject: Re: bohe and delta experimentation...
Archived-At: <http://www.w3.org/mid/81951.1358420591@critter.freebsd.dk>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15957
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>

Content-Type: text/plain; charset=ISO-8859-1
--------
In message <CABP7RbeNFm3ZHdtDBUJb3idJjFj0q+fxDPzxKZBhSJqXw8zWaQ@mail.gmail.com>
, James M Snell writes:

>I'm starting with dates first...

>Then, given a sample of 100k
>more randomly generated timestamps, the average compression was 12-13 bytes
>for the date value.

<hat="Certified Time Nut">

With an 8 bytes fixed field, you could have 2 billion years with
~4 msec resolution if you just packed it as a binary number.

As a bonus, it's cheap to work with in computers...

If you do leading zero suppression it will be only five bytes for
most of the first century.

Please also loose any and all mention of timezones:  All timestamps
SHALL be UTC in HTTP, we do really not want to have to keep track
of fickle politicians fudging timezones on our load-balancers.

</hat>

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.