Bazaar-NG vs. Mercurial -- speed comparison

John Arbash Meinel john at arbash-meinel.com
Fri May 19 17:03:15 BST 2006


James Blackwell wrote:
> On Thu, May 18, 2006 at 02:29:49PM -0500, John Arbash Meinel wrote:
>>> You should grab it and use it.  It's very nice.  It imposes a one-time cost
>>> when an attribute of a demand-loaded symbol is looked up; after that, the
>>> importing namespace is patched with the real module, so there's no
>>> subsequent cost.
>> I agree. I put it on my todo list.
> 
> can you provide a way to build all the pycs if you do demand loading? I
> maintain bzr on several machines with the following process to make sure
> pyc files are available for all users:
> 
>  1. bzr update /usr/local/bzr.dev
>  2. find . -name '*.pyc" | xargs rm
>  3. ./bzr
> 

Well, that still doesn't guarantee to compile everything. But we could
provide a 'compile-bzrlib' command. Or you could just do:

python -c 'from compileall import compile_dir; \
		compile_dir("bzrlib", force=True)'

That should do the job.

John
=:->


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


More information about the bazaar mailing list