BEncode Pyrex

Jelmer Vernooij jelmer at vernstok.nl
Tue May 26 00:52:11 BST 2009


This is Alexanders' Pyrex patch, merged into current bzr.dev. With this
patch and the BEncode revision serializer patch I see about twice the
performance as I get with the XML serializer.

I'm not sure about the patch itself entirely (so no [MERGE]), especially
the fact that it moves the core bencode to "bzrlib.bencode" while
leaving the existing python implementation in bzrlib.util. This makes it
easy for people to accidently import the python version while they want
the Pyrex one, if possible. Perhaps we should just move bencode to
bzrlib.bencode, deprecate the name bzrlib.util.bencode and move the
existing python implementation to bzrlib._bencode_py?

I'll look into this more closely tomorrow.

Cheers,

Jelmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bencode-pyrex-2697.patch
Type: text/x-diff
Size: 48697 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090526/3b321e4a/attachment-0001.bin 


More information about the bazaar mailing list