Making diff fast (was Re: Some notes on distributed SCM)

Chris Mason mason at suse.com
Mon Apr 11 01:36:53 BST 2005


On Sunday 10 April 2005 19:32, Martin Pool wrote:
> On Sun, 2005-04-10 at 19:11 -0400, Chris Mason wrote:
> > This is only true if your machine does nothing other then source control.
> > make -j 10 can toss the inodes from cache, or starting your gui email
> > client, or ...

[ ... ]

I seem to be in the minority of people who hate stats.  I think <other SCMs> 
are just so slow that people think stating the whole tree in bzr/arch/git 
feels fast ;)  This is why quilt feels so fast, it really is O(change) for 
everything.

> I've already been running bzr under "stat -c" to make sure that as much
> as possible the system call counts are a low multiple of the number of
> source files.

The attached patch replaces my minor diff improvement from last night.  It 
eliminates all the extra stats from bzr diff file1 file2 ....  It won't play 
nice with renames, but I'm happy to rework it a little later if you want 
someone to go on a stat hunt.

-chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bzr-diff2
Type: text/x-diff
Size: 5572 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050410/834ceb67/attachment.bin 


More information about the bazaar mailing list