Experiments with LZMA compression of bundles

Benoit Boissinot bboissin at gmail.com
Fri May 20 03:17:37 CDT 2011


On Fri, May 20, 2011 at 9:20 AM, Sune Foldager <cryo at cyanite.org> wrote:
> Just for fun, I hacked in LZMA compression support in Mercurial's bundle
> system, so I could test how much compression that might give us. I include
> the results below.
>
> I used pyliblzma, which in turn depends on liblzma2 (used by xz). I used
> default settings, which, as I understand, use a rather large amount of
> memory, but this can be tuned. Hacking it into Mercurial was quite simple,
> although the various systems handling bundles is disseminated throughout
> several modules, so I only made it work for on-disk bundles.

Note that the vast majority of bundle operation are over http/ssh, in
that case bzip2 won't be used, so the fair comparison is against zlib.
My guess is that the CPU usage on the server will show a much bigger difference.

Benoit


More information about the Mercurial-devel mailing list