[MERGE] Accelerate no-op pull

Aaron Bentley aaron at aaronbentley.com
Wed Apr 30 01:44:05 BST 2008


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

Hi all,

This branch accelerates pull when the desired revisions are already
present in the repository.

- - It delays history retrieval until it has been shown to be needed
- - It adds a shortcut to InterRepository._walk_to_common_revisions for
  the case where the revision is already present in the repository.
- - It adds a shortcut to InterPackRepo.fetch for the case where no
  revisions need be retrieved.

This changes the time for a no-op pull of bzr.dev from 13 seconds to 2
seconds for me.  (6.5x faster)

There is no apparent effect on loom branches, which have their own pull
logic.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIF8DV0F+nu1YWqI0RAqSpAJ0QWvAF4fkzaNo4t772/Qx6rWWJ/wCeJBZI
EQ+1D4iMrly6dmu5YixLk00=
=w/ZB
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Aaron's mergeable stuff-1933.patch
Type: text/x-diff
Size: 7383 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080429/28e9606c/attachment.bin 


More information about the bazaar mailing list