[PATCH] auto rename: best matches and speed improvements UPDATE1

Matt Mackall mpm at selenic.com
Thu Oct 2 16:26:00 CDT 2008


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.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial-devel mailing list