[PATCH][BUG] bzr selftest runs the global bzr

John A Meinel john at arbash-meinel.com
Mon Jun 27 04:39:26 BST 2005


John A Meinel wrote:

> In doing my timing refinements, I found that bzr selftest is running the
> wrong bzr. It was running the global bzr (found on the path), rather
> than the local one.
>
> I'm still working the kinks out, but my latest speed bumped bzr changes
> "time bzr selftest" from 1min 20 seconds down to 57seconds. Thats a >25%
> speed up.
>
> The biggest things are that I can get away with not loading anything but
> commands, branch, trace, errors, and osutils.
>
> tree and inventory are only loaded upon demand, which means that xml.py
> doesn't need to be loaded either.
>
> Anyway, the attached patch fixes 'bzr selftest' spawning the wrong bzr.
>
> John
> =:->

I forgot to mention, by lazy-import tree is available at:
http://bzr.arbash-meinel.com/bzr-mainline/bzr-faster-start/

I basically have showed that it is possible to speed things up a little
bit. I would guess 50% is the most that we could do. For 'time bzr root'
I got it down to 0.23/0.55 = 41% of the time.For 'time bzr status' it is
down to .972/1.73 = 90% of the time.

I can create a patch for this if requested. But it is a pretty big
change, so is probably better to get from my repository.
John
=:->

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050626/c565e81d/attachment.pgp 


More information about the bazaar mailing list