[bbc/MERGE] line-based inventories (dev5)

John Arbash Meinel john at arbash-meinel.com
Tue Feb 17 20:18:16 GMT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The attached patch changes the inventory serializer for 'chk' formats.
Basically instead of doing:
file_id\0revision_id\0...
it does

file_id
revision_id
sha1
...

(Changes from a single line using \0 separators to multi-line using \n
as the separator.)

The big win from this is that line-based delta compressors are more
efficient. (groupcompress and knit-delta are both line-based). The
difference is about 60 bytes per change versus about 200 bytes per change.

Since this also changes the serialization logic for chk pages, I also
bumped all of the --development formats to be '--development5' (and
removed --development3).

As part of making sure I didn't break things further, this patch also
includes a few more test suite fixes (some of which were already failing
in brisbane-core).

Note that this doesn't actually start using delta compression for any
format, it just makes it easier to bring in better delta compression later.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmbG4gACgkQJdeBCYSNAAOP5gCgzIeq2jiQhOjZeg8fmcI3Ygb9
5IgAn0sL4Y1urK+gHyBuRtjq0s7ypsKr
=a5KD
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: inv_as_lines.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20090217/10ee200e/attachment-0001.diff 


More information about the bazaar mailing list