Bazaar-NG vs. Mercurial -- speed comparison

Martin Pool mbp at canonical.com
Mon May 15 03:43:14 BST 2006


On 15 May 2006, Ramon Diaz-Uriarte <rdiaz02 at gmail.com> wrote:

> Could a mixed approache be made available? If you have a C compiler,
> do this, if you don't do that? After all many linux users do have gcc
> in their systems or else gcc is simple enough to install from the
> binary packs for the different distros. Even windows users, I think,
> might be able to compile or download precompiled extensions from using
> Mingw (I think I recall that mingw was not a huge pain).  The gains in
> speed might make it worth it. And bzr would still work from the source
> (it just wouldn't use the compiled C).

Gustavo's smart-pm package uses an interesting approach: modules are
all written in Python originally, and then once they are stable,
converted to C.  The translation is very close and the functionality is
required to be exactly the same; each line of Python is retained as a
comment in the C code.  That could be a good way to proceed, though
there are probably some architectural/algorithmic improvements we can
make to the Python code first.

-- 
Martin




More information about the bazaar mailing list