[MERGE][RFC] Add simple revision serializer based on RIO.

Martin Pool mbp at sourcefrog.net
Mon May 11 08:19:06 BST 2009


2009/5/11 Matt Nordhoff <mnordhoff at mattnordhoff.com>:
> Martin Pool wrote:
> [snip]
>
>> However, before moving to RIO for future formats (and I say this
>> having added the code) I would think hard about whether it should use
>> bencode instead, which has the advantage of being able to represent
>> somewhat more complex nesting (like dicts inside dicts) without
>> needing a separate layer of encoding on top.  Revisions are pretty
>> simple but even there it may be useful.  I'm not sure about the
>> relative performance.
>
> If I understand correctly, RIO is line-based but bencode is not. Is the
> delta format still line-based? If so, using bencode would be more difficult.

We don't do line-by-line compression on revisions because generally
speaking there's not much in common between them.  zlib compression in
groupcompress will pick out common strings like committer names.  Good
question though.

-- 
Martin <http://launchpad.net/~mbp/>



More information about the bazaar mailing list