[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: swd - SVN word diff (wdiff)

From: Chris Pickett <chris.pickett_at_mail.mcgill.ca>
Date: Mon, 30 Nov 2009 05:08:56 -0500

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...

Chris

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2425413

Please start new threads on the <dev_at_subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <dev-subscribe_at_subversion.apache.org>.
Received on 2009-11-30 11:09:26 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.