[PATCH] auto rename: best matches and speed improvements UPDATE4 - all python version

Herbert Griebel herbertg at gmx.at
Fri Oct 3 01:21:42 CDT 2008


Matt Mackall wrote:
> On Thu, 2008-10-02 at 17:18 +0200, Herbert Griebel wrote:
>> Matt Mackall wrote:
>>> On Wed, 2008-10-01 at 17:57 +0200, Benoit Boissinot wrote:
>>>>> -static char mdiff_doc[] = "Efficient binary diff.";
>>>>> +
>>>>> +typedef struct {
>>>>> +	unsigned int hist[256];
>>>>> +	unsigned int filelen;
>>>>> +} STATDATA;
>>> Uh oh. Why did we grow more C code?
>> If you mean the typedef, this has been fixed already,
>> please see the latest patch (1 hour ago).
> 
> No, I mean: there appears to be a lot of new C code to support a
> relatively obscure feature. This is maybe not a good thing as C code is
> much more verbose, fragile, and hard to maintain.
> 
> There is lots of Mercurial code that perhaps should be in C for
> performance reasons. But I don't think this is in the top 10.
> 
> So, please: start with everything in Python. When we've got that all
> merged and happy, we can talk about further performance enhancements.

Patch is here:
http://www.soundboot.com/hg/autorename_bestmatches_and_speed.patch


More information about the Mercurial-devel mailing list