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

Re: FYI: Tools to evaluate header compression algorithms

From: Mark Nottingham <mnot@mnot.net>
Date: Tue, 15 Jan 2013 10:27:14 +1100
Cc: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Message-Id: <07E8C052-21D7-457C-B973-18BB6BE16C9A@mnot.net>
To: Frédéric Kayser <f.kayser@free.fr>
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/
Received on Monday, 14 January 2013 23:27:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 14 January 2013 23:27:45 GMT