[MERGE][RFC] Add simple revision serializer based on RIO.
John Arbash Meinel
john at arbash-meinel.com
Tue May 12 15:07:06 BST 2009
-----BEGIN PGP SIGNED MESSAGE-----
>>> 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.
>> The nice thing of RIO is that it is a lot more human-readable (and
> What use case for this? Is it really benefit?
For any of us that have to debug when things go wrong, it can be quite
If you get 'corrupted' data somehow, it is much easier to see what
should be there with something like RIO, rather than bencode. If only
because of the natural line-breaks in RIO.
For machine-machine conversations, there really isn't much difference.
But given 2 serializations, where the decode/encode complexity is the
same, preferring the one that humans can more easily understand seems
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the bazaar