[darcs-users] Is darcs optimize --compress still useful?

Trent W. Buck trentbuck at gmail.com
Tue Mar 24 00:53:08 UTC 2009


On Tue, Mar 24, 2009 at 11:37:11AM +1100, Trent W. Buck wrote:
> As a case study, let's examine a --complete checkout of Darcs' repo,
> both compressed and uncompressed.
>
>     $ find _darcs -type f \( -size 0b -o -size 1b \) | wc -l
>     5093
>     $ find _darcs -type f -not -size 0b -not -size 1b | wc -l
>     2728

Interestingly, using lzma compression is actually worse than using
gzip compression (fewer one-block files).  I guess this is because the
files are so small, and lzma's dictionary is 1024 times larger than
gzip's?

    $ darcs optimize --uncompress
    $ find _darcs -type f -exec lzma {} +
    $ find _darcs -type f \( -size 0b -o -size 1b \) | wc -l
    4986
    $ find _darcs -type f -not -size 0b -not -size 1b | wc -l
    2835


More information about the darcs-users mailing list