Re: FYI: Tools to evaluate header compression algorithms

Mark Nottingham <mnot@mnot.net> Mon, 14 January 2013 23:29 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 94E4321F8B71 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 14 Jan 2013 15:29:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.567
X-Spam-Level:
X-Spam-Status: No, score=-7.567 tagged_above=-999 required=5 tests=[AWL=2.132, BAYES_00=-2.599, 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 feYo7bxb5cic for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 14 Jan 2013 15:29:03 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id D517521F8B70 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 14 Jan 2013 15:29:03 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TutRS-0000xi-EB for ietf-http-wg-dist@listhub.w3.org; Mon, 14 Jan 2013 23:27:46 +0000
Resent-Date: Mon, 14 Jan 2013 23:27:46 +0000
Resent-Message-Id: <E1TutRS-0000xi-EB@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TutRN-0000wT-Uf for ietf-http-wg@listhub.w3.org; Mon, 14 Jan 2013 23:27:41 +0000
Received: from mxout-07.mxes.net ([216.86.168.182]) by lisa.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TutRN-0007PM-1e for ietf-http-wg@w3.org; Mon, 14 Jan 2013 23:27:41 +0000
Received: from mnot-mini.mnot.net (unknown [118.209.235.94]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 30C4D22E1F3; Mon, 14 Jan 2013 18:27:17 -0500 (EST)
Content-Type: text/plain; charset="iso-8859-1"
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <708866698.210998824.1358202349611.JavaMail.root@zimbra71-e12.priv.proxad.net>
Date: Tue, 15 Jan 2013 10:27:14 +1100
Cc: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <07E8C052-21D7-457C-B973-18BB6BE16C9A@mnot.net>
References: <708866698.210998824.1358202349611.JavaMail.root@zimbra71-e12.priv.proxad.net>
To: Frédéric Kayser <f.kayser@free.fr>
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.182; envelope-from=mnot@mnot.net; helo=mxout-07.mxes.net
X-W3C-Hub-Spam-Status: No, score=-4.2
X-W3C-Hub-Spam-Report: AWL=-2.303, BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TutRN-0007PM-1e 2183e7e4051199e77b267109a3787cf7
X-Original-To: ietf-http-wg@w3.org
Subject: Re: FYI: Tools to evaluate header compression algorithms
Archived-At: <http://www.w3.org/mid/07E8C052-21D7-457C-B973-18BB6BE16C9A@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15868
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>

sample_exec_codec.py is just an example; that could be any executable, as long as the format returned is similar.

Cheers,


On 15/01/2013, at 9:25 AM, Frédéric Kayser <f.kayser@free.fr> wrote:

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

--
Mark Nottingham   http://www.mnot.net/