Rev 3908: Add a comment about a bit of code that could be optimized better. in http://bzr.arbash-meinel.com/branches/bzr/brisbane/lazy_gc_stream
John Arbash Meinel
john at arbash-meinel.com
Tue Mar 17 20:33:12 GMT 2009
At http://bzr.arbash-meinel.com/branches/bzr/brisbane/lazy_gc_stream
------------------------------------------------------------
revno: 3908
revision-id: john at arbash-meinel.com-20090317203305-bsz9fzhxgg2vd5pz
parent: john at arbash-meinel.com-20090317193814-ytzlgl0mbd8qtvp4
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_gc_stream
timestamp: Tue 2009-03-17 15:33:05 -0500
message:
Add a comment about a bit of code that could be optimized better.
-------------- next part --------------
=== modified file 'bzrlib/repofmt/pack_repo.py'
--- a/bzrlib/repofmt/pack_repo.py 2009-03-13 06:08:29 +0000
+++ b/bzrlib/repofmt/pack_repo.py 2009-03-17 20:33:05 +0000
@@ -2445,6 +2445,9 @@
# This is cheating a bit to use the last grabbed 'inv', but it
# works
for name, bytes in items:
+ # TODO: We should use something cheaper than _bytes_to_entry,
+ # which has to .decode() the entry name, etc.
+ # We only care about a couple of the fields in the bytes.
entry = inv._bytes_to_entry(bytes)
if entry.name == '' and not rich_root:
continue
More information about the bazaar-commits
mailing list