[MERGE] Lock working trees inside cmd_diff to avoid multiple locks and unlocks
Lukáš Lalinský
lalinsky at gmail.com
Fri Nov 30 17:08:26 GMT 2007
Hi,
every time a repository is unlocked and locked, all indexes need to be
re-read (for "diff -c" that means reading the revision index twice). It
is especially visible with packs where the indexes are rather big. This
patch adds a global lock to cmd_diff, which avoids the multiple locks.
Here are some times for "bzr diff -c 3000 >/dev/null" on a pack-0.92
repository.
bzr.dev:
real 0m2.262s
user 0m1.952s
sys 0m0.112s
bzr.dev with this patch:
real 0m1.322s
user 0m1.192s
sys 0m0.088s
Lukas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bzr-mail-tpuMtB.patch
Type: text/x-patch
Size: 3503 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20071130/fd6ec1f0/attachment.bin
More information about the bazaar
mailing list