[MERGE] Speed up 'bzr reconcile' [was: Re: 'bzr reconcile' *really* slow]

John Arbash Meinel john at arbash-meinel.com
Mon Oct 15 18:23:49 BST 2007


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

Andrew Bennetts wrote:
> Ahem.  Attached.
> 
> Andrew Bennetts wrote:
>> [...]
>>
>> Ok, with the attached bundle I can reconcile bzr.dev in under 40 minutes and
>> 310MB of memory on my pretty average laptop.
>>
>> This isn't stunning but it's adequate for fixing bzr.dev, at least.  So I think
>> we should merge this bundle.  The changes are fairly straightforward.
>>
>> -Andrew.
>>
>>

Well, you're previous inventory caching version was at 876/2068 and had taken
21hrs 31minutes, and was consuming 1.1GB.

The new one slowly builds up memory consumption (I assume it is pre extracting
all of the relevant inventories, etc.) to about 310MB. It would probably be
good to have a progress indicator during that time, since it does take quite a
while.

And then finishes all of them in 1hr 25min. A heck of a lot better than the
original 8 days+.

Overall, very nice work.

BB:approve

The only things I might say:

100 revisions at a time seems a bit big for large trees.

I'm just thinking that a tree with 10,000 entries x 100 revisions is 1,000,000
inventory entries. I guess it won't be terrible. And as you say, 'reconcile' is
used fairly infrequently, so it isn't really worth spending much more time on it.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHE6IkJdeBCYSNAAMRAqnoAKCdrUS8y3ZZgx9XudtRbARj6OKLKwCfazce
MGD9ME9zeIVJxbXYMocdc9M=
=O2g4
-----END PGP SIGNATURE-----



More information about the bazaar mailing list