[MERGE] Repository.iter_files_bytes()

John Arbash Meinel john at arbash-meinel.com
Wed Mar 25 17:58:21 GMT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This changes iter_files_bytes() to return a chunked string, which is
what the api was defined as in the first place. It then tracks down the
various places that expected it to be a plain string, and fixes them.

This wasn't very difficult to do, and it turns out to have a very large
performance impact for "bzr co" of large trees like Launchpad. I didn't
test it with XML trees, but for brisbane-core, it changes "bzr co" from
about 17s => 11s.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknKcL0ACgkQJdeBCYSNAAPr1wCggtkRNkCQfcQHvdDRA+/ltf25
gfsAn2dIPBwCFgIWdd3Vik9aLXhtsmdh
=vyve
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: iter_files_bytes_chunked.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20090325/ca30a757/attachment.diff 


More information about the bazaar mailing list