Rev 4416: Use the chk_serializer in actual work. in lp:///~jameinel/bzr/revision_bencode_decoder
John Arbash Meinel
john at arbash-meinel.com
Thu Jun 4 21:19:49 BST 2009
At lp:///~jameinel/bzr/revision_bencode_decoder
------------------------------------------------------------
revno: 4416
revision-id: john at arbash-meinel.com-20090604201929-f8lhhl7xkkbmxakr
parent: john at arbash-meinel.com-20090604201521-v23jxaxpo7k508zs
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: revision_bencode_decoder
timestamp: Thu 2009-06-04 15:19:29 -0500
message:
Use the chk_serializer in actual work.
-------------- next part --------------
=== modified file 'bzrlib/chk_serializer.py'
--- a/bzrlib/chk_serializer.py 2009-06-04 17:38:30 +0000
+++ b/bzrlib/chk_serializer.py 2009-06-04 20:19:29 +0000
@@ -23,6 +23,7 @@
from bzrlib import (
bencode,
cache_utf8,
+ _chk_serializer_pyx,
inventory,
osutils,
revision as _mod_revision,
@@ -104,6 +105,7 @@
# Of that time, probably 0.6s is spend in bencode.bdecode().
# Regardless 'time bzr log' of everything is 7+s, so 1.3s to
# extract revision texts isn't a majority of time.
+ return _chk_serializer_pyx.read_revision_from_string(text)
ret = bencode.bdecode(text)
if not isinstance(ret, list):
raise ValueError("invalid revision text")
More information about the bazaar-commits
mailing list