Serializer_v5._pack_revision and _unpack_revision to become public?
David Allouche
david at allouche.net
Sun Jan 15 22:33:25 GMT 2006
Hello, I had a very productive week-end, with a couple of nice round
tuits.
First I have added calltree (for KCachegrind) support to lsprof
<http://ddaa.net/blog/python/lsprof-calltree.html>. The patch can be
also found on my bzr branch <http://ddaa.net/bazaar/bzr.ddaa>.
Then I used the result to improve the bzrk performance to be usable
again on trees with a large ancestry. This work can be found on my bzrk
branch <http://ddaa.net/bazaar/bzrk>.
Long story short, I ended up creating a cache for the revid->Revision
dictionary used by bzrk that holds the entire ancestry of the branch
tip. This cache was initially a pickle, but pickle cannot be used with
untrusted data, so now it uses an XML format that is a trivial extension
of the format used for the revision store.
To read and write this cache, I used the _unpack_revision and
_pack_revision methods of bzrlib.xml5.Serializer_v5.
Since there is apparently at least one reasonable (?) use case for using
these methods from outside bzrlib, I would like them to become public
methods.
--
-- ddaa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060115/7630eb83/attachment.pgp
More information about the bazaar
mailing list