[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[wdiff-bugs] Re: swd - SVN word diff (wdiff)

From: Chris Pickett
Subject: [wdiff-bugs] Re: swd - SVN word diff (wdiff)
Date: Mon, 30 Nov 2009 05:08:56 -0500
User-agent: Thunderbird (Macintosh/20071210)

Daniel Shahaf wrote:
        export PATH=`echo ${PATH} | sed -e "s_${HOME}/cpicke/home/sbin/swd:__g"`

You can use `dirname $0` instead of hard-coding the path here?

Oh!  This trick has eluded me for years...

So you're actually going to use that wrapper!? Good to see that writing partially-tested shell scripts in an email at 2am actually turns out useful sometimes...

Sure, it's great slash I'm procrastinating.  Abstraction is always fun.

> Hard-core the list of svn subcommands in the shell script?

A cache file is easier and also fine since grep is fast. Looks like the PATH editing and searching is the remaining bottleneck:

svn wdiff before caching: 165ms
svn wdiff after caching: 130ms
grep: 5ms
svn-wdiff: 90ms
svn diff: 60ms
/sw/bin/svn diff: 15ms

(I guess it was more like 1.5x for the svn help call.) Anyway, the svn wrapper is getting close to 'instant' now for simple changes, but still 4x worse than native (which over NFS could be worse).

After all this are you going to try it out?  The water's lovely...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]