[MERGE] BEncode Revision Serializer
mbp at sourcefrog.net
Fri Jun 5 03:12:32 BST 2009
2009/6/5 John Arbash Meinel <john at arbash-meinel.com>:
> Anyway, it is parsing 11.3MiB of revision text in 0.5s. Which seems
> decent enough. Though if we had a truly custom format we could use
> fixed-width prefixes, and then avoid all of the strtol calls.
Like Andrew I'd rather keep this in standard bencode if we possibly
can, though I would like to look at using bencode differently by
storing the standard core fields as a list rather than a dict. (I
don't know if you already tried that.) I'm a bit wary that if we use
fixed-width prefixes we'll either find someone wants to store a photo
of their cat in a revprop, or that we waste space serializing 00000008
on every string.
More information about the bazaar