'bzr reconcile' *really* slow

Andrew Bennetts andrew at canonical.com
Sat Oct 13 13:53:10 BST 2007


John Arbash Meinel wrote:
[...]
> 
> On my desktop it has been going for 2 hours now. And if I SIGQUIT in to see
> what it is doing, it seems to be in _fix_text_parents() having gotten to 17 out
> of 4000 entries. Which means that it should finish after 470 hours or something
> like 20 *days*.
> 
> I'm guessing there is something fishy going on here. It seems to be extracting
> a whole lot of inventories (a complete inventory for every revision of every
> file?).

Yeah, that does seem to be what's going on.  A quick hack to cache inventory
lookups seems to bring the time down from 45 seconds to 9 seconds on a small
branch with 258 revisions.

I've attached that patch.

-Andrew.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: reconcile-speed-hack.diff
Type: text/x-diff
Size: 2326 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20071013/15b36371/attachment.bin 


More information about the bazaar mailing list