Re: FYI: Tools to evaluate header compression algorithms

Frédéric Kayser <f.kayser@free.fr> Mon, 14 January 2013 22:27 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 3F23B21F85F3 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 14 Jan 2013 14:27:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.649
X-Spam-Level:
X-Spam-Status: No, score=-9.649 tagged_above=-999 required=5 tests=[AWL=-0.300, BAYES_00=-2.599, HELO_EQ_FR=0.35, J_CHICKENPOX_43=0.6, MIME_8BIT_HEADER=0.3, 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 kBbgu+xwo3Kw for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 14 Jan 2013 14:27:51 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 8171121F85CB for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 14 Jan 2013 14:27:51 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TusU1-0006DD-Dp for ietf-http-wg-dist@listhub.w3.org; Mon, 14 Jan 2013 22:26:21 +0000
Resent-Date: Mon, 14 Jan 2013 22:26:21 +0000
Resent-Message-Id: <E1TusU1-0006DD-Dp@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <f.kayser@free.fr>) id 1TusTw-0006CI-Rk for ietf-http-wg@listhub.w3.org; Mon, 14 Jan 2013 22:26:16 +0000
Received: from smtp1-g21.free.fr ([212.27.42.1]) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <f.kayser@free.fr>) id 1TusTv-000095-OE for ietf-http-wg@w3.org; Mon, 14 Jan 2013 22:26:16 +0000
Received: from zimbra71-e12.priv.proxad.net (unknown [172.20.243.221]) by smtp1-g21.free.fr (Postfix) with ESMTP id D1DFC940019 for <ietf-http-wg@w3.org>; Mon, 14 Jan 2013 23:25:50 +0100 (CET)
Date: Mon, 14 Jan 2013 23:25:49 +0100
From: Frédéric Kayser <f.kayser@free.fr>
To: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Message-ID: <708866698.210998824.1358202349611.JavaMail.root@zimbra71-e12.priv.proxad.net>
In-Reply-To: <B7943590-9C82-4B5B-B084-89347B9B7D6A@mnot.net>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Originating-IP: [81.56.127.176]
X-Mailer: Zimbra 7.2.0-GA2598 (ZimbraWebClient - FF3.0 (Linux)/7.2.0-GA2598)
X-Authenticated-User: f.kayser@free.fr
Received-SPF: none client-ip=212.27.42.1; envelope-from=f.kayser@free.fr; helo=smtp1-g21.free.fr
X-W3C-Hub-Spam-Status: No, score=-3.4
X-W3C-Hub-Spam-Report: AWL=-3.450, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001
X-W3C-Scan-Sig: maggie.w3.org 1TusTv-000095-OE e48e6bfa8d18a645a52c607ee7392a63
X-Original-To: ietf-http-wg@w3.org
Subject: Re: FYI: Tools to evaluate header compression algorithms
Archived-At: <http://www.w3.org/mid/708866698.210998824.1358202349611.JavaMail.root@zimbra71-e12.priv.proxad.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15866
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>

Hello,
there's something I don't get, I would like to try other compression algorithms, but those are written in plain old C or assembly, sample_exec_codec.py is in Python... how I am supposed to hook something in there?


Adding New Compression Algorithms

If you wish to implement a new codec, there are two easy approaches.

1) Develop it in Python. New modules should be subdirectories of 'compressor', and should inherit from BaseProcessor there.

2) Develop it in another language, and use the 'fork' module to execute it in a separate process. See 'sample_exec_codec.py' for an example of this; it can be run like this:

./compare_compressors.py -c fork="sample_exec_codec.py" file.har


----- Mail original -----
De: "Mark Nottingham" <mnot@mnot.net>
À: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Envoyé: Lundi 31 Décembre 2012 03:22:33
Objet: FYI: Tools to evaluate header compression algorithms

As part of his implementation, Roberto created a test harness for comparing headers. With his help, I've forked that and refactored a bit --
  https://github.com/http2/compression-test