Multithreading processing?

Paul Boddie paul.boddie at biotek.uio.no
Thu Apr 22 07:27:48 CDT 2010


Alexander Belchenko wrote:
> Vadim Chekan пишет:
>> Hi all,
>> I'm new to hg and one of the things I like about it is that it is
>> written in high level language.
>> I wonder either hg can exploit high level language benefits to
>> outperform the other :) version system because it would be easier to
>> write highly parallel code in python then in bare C.
>
> Is it really true in the light of GIL in Python?

Regardless of the GIL, it might be easier to consider how the work may 
be divided up in a higher-level language and to introduce the necessary 
abstractions. And a lot of parallel stuff can be done in a multi-process 
model, anyway, as things like make and distcc readily demonstrate.

>> Are there any important cpu-intense tasks which algorithms can be
>> easily parallelized?

This is the big question. My understanding was that Mercurial was 
already competitive with, say, Git on performance because of smarter 
decisions about data representations, thus demonstrating that the 
"everything on the metal" school of coding doesn't always guarantee 
superior performance.

Paul


More information about the Mercurial mailing list