[MERGE] Optimize single-file diff/revert/etc
Aaron Bentley
aaron.bentley at utoronto.ca
Thu Jan 11 16:40:10 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
John Arbash Meinel wrote:
> Aaron Bentley wrote:
>
>>>Hi all,
>>>
>>>This patch updates Tree._iter_changes so that it performs much faster
>>>when specific files are specified.
>>>
>>>It tweaks iter_entries_by_dir to avoid walking portions of the tree that
>>>are not ancestors of specified files. It does not return entries for
>>>unspecified files. This is more complicated than just returning the
>>>specified entries, but it ensures that ordering requirements are met.
>>>
>>>For the case where a single file is specified, there can be no ordering
>>>requirements, so that entry is simply returned.
>
>
> I'm very interested, but you didn't send a patch.
Oops. Here you go.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFFpmhq0F+nu1YWqI0RAuZDAKCH+N8Y7spSaqPCHFsNdLu0lhFVqwCfSKeP
C2Q25ze9hUlqCa4e9+qe0zg=
=7UKM
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: optimize_specific.patch
Type: text/x-patch
Size: 31634 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070111/5e53df27/attachment-0001.bin
More information about the bazaar
mailing list