~bzr-pqm/bzr/bzr.dev

[patch] weave fetch optimizations (Goffredo Baroncelli)

The patch adds 2 optimizations:

1) The patch add a hash ( file_ids_names ) which caches the revision
contained in a weave already  processed, so it isn't needed to reload the
weave in order to check if a revision is present.

2) Moreover if it is required to merge a remote weave without a correspondent
weave in the local branch, the merge phase is skipped and the remote weave is
copied into the repository without other action.

The test below highlights a gain of 3x of user time, against a repository with
a history of 2548 revisions and 350 files. The repository is in the same machine,
 which is a Duron 700MHz w/ 384MB of ram.

$ # w/ patch
$ time bzr branch http://kreijack.homelinux.net:8077/bazaar/hgweb_devel/
Branched 1279 revision(s).

real    59m9.511s
user    40m14.090s
sys     1m57.430s

$ # w/o patch
$ time bzr branch http://kreijack.homelinux.net:8077/bazaar/hgweb_devel/
Branched 1279 revision(s).

real    147m34.191s
user    122m10.273s
sys     5m43.247s
Filename Latest Rev Last Changed Committer Comment Size
..
bash 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
emacs 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
zsh 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
add-bzr-to-baz 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late 223 bytes Diff Download File
create_bzr_rollup.py 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late 5.5 KB Diff Download File
fortune 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late 306 bytes Diff Download File
newinventory.py 1390 19 years ago Robert Collins pair programming worx... merge integration and wea 4.3 KB Diff Download File
pwclient.full 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late 13 KB Diff Download File
pwk 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late 951 bytes Diff Download File
upload-bzr.dev 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late 829 bytes Diff Download File