Re: FYI: Tools to evaluate header compression algorithms

James M Snell <jasnell@gmail.com> Mon, 14 January 2013 22:48 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 5C29B21F8B25 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 14 Jan 2013 14:48:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.983
X-Spam-Level:
X-Spam-Status: No, score=-7.983 tagged_above=-999 required=5 tests=[AWL=1.715, BAYES_00=-2.599, HTML_MESSAGE=0.001, 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 noYeay+4fCMy for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 14 Jan 2013 14:48:54 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 5AB7821F8B19 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 14 Jan 2013 14:48:54 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Tusou-00081P-88 for ietf-http-wg-dist@listhub.w3.org; Mon, 14 Jan 2013 22:47:56 +0000
Resent-Date: Mon, 14 Jan 2013 22:47:56 +0000
Resent-Message-Id: <E1Tusou-00081P-88@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <jasnell@gmail.com>) id 1Tusoq-00080j-JT for ietf-http-wg@listhub.w3.org; Mon, 14 Jan 2013 22:47:52 +0000
Received: from mail-ie0-f174.google.com ([209.85.223.174]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <jasnell@gmail.com>) id 1Tusop-0005cR-SQ for ietf-http-wg@w3.org; Mon, 14 Jan 2013 22:47:52 +0000
Received: by mail-ie0-f174.google.com with SMTP id c11so5978309ieb.5 for <ietf-http-wg@w3.org>; Mon, 14 Jan 2013 14:47:26 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=2GzqEoEPONakycJeH4RaVL9nTkcu/ZheXgGU5YLExc0=; b=eQfDdOcXrnwMEQ5SpFKMcUKpfvMf6a79i3oa1TfrRNqbItYZtabm/Vd/S3BixjsjaY o+0yO6hlLtY8jpnRnVKP9aXRIYgX9c2nzfpaDLbeqvPgZrJ8I9kHDRgUryVbJfAkMovS Wzm713gPCMweD0wOskX2t+t+FajCY8XvurU+FNinL1WlViW6nacMH2N9uYYzYi+7A/Ol wTSrBQ9C1ZSy2RXsa5v8By1ZVyEldNmW+Sl6xbMeL6WfQ1EI/8QMy9Q/u7A5GJNrmgjr wFS6hwRtK7xei4F64HanrZiMItcqKIhmUv2bjeGZpouw0jv5/vE5YUU6R8mg3VqOemqQ 6Pig==
X-Received: by 10.50.219.233 with SMTP id pr9mr131016igc.19.1358203646070; Mon, 14 Jan 2013 14:47:26 -0800 (PST)
MIME-Version: 1.0
Received: by 10.64.26.137 with HTTP; Mon, 14 Jan 2013 14:47:06 -0800 (PST)
In-Reply-To: <708866698.210998824.1358202349611.JavaMail.root@zimbra71-e12.priv.proxad.net>
References: <B7943590-9C82-4B5B-B084-89347B9B7D6A@mnot.net> <708866698.210998824.1358202349611.JavaMail.root@zimbra71-e12.priv.proxad.net>
From: James M Snell <jasnell@gmail.com>
Date: Mon, 14 Jan 2013 14:47:06 -0800
Message-ID: <CABP7Rbd68AO_UZRabMOAwqPznC2OV1VL+=r0VtU4Ctu6CJ28Fw@mail.gmail.com>
To: Frédéric Kayser <f.kayser@free.fr>
Cc: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="14dae934120fdb4e9d04d3476dc4"
Received-SPF: pass client-ip=209.85.223.174; envelope-from=jasnell@gmail.com; helo=mail-ie0-f174.google.com
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-1.718, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1Tusop-0005cR-SQ e6b489ef37115c46b4c1e240e2525e6f
X-Original-To: ietf-http-wg@w3.org
Subject: Re: FYI: Tools to evaluate header compression algorithms
Archived-At: <http://www.w3.org/mid/CABP7Rbd68AO_UZRabMOAwqPznC2OV1VL+=r0VtU4Ctu6CJ28Fw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15867
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>

Go here and look at the bohe directory as an example...

https://github.com/jasnell/compression-test/tree/master/compressor

Ignore the spdy3_dictionary.h file that's in there, it's not used.

- James


On Mon, Jan 14, 2013 at 2:25 PM, 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
>
>
>
>
>
>