Re: swd - SVN word diff (wdiff)
Chris Pickett <[email protected]> Mon, 30 Nov 2009 05:08:56 -0500
| Newsgroups | gmane.comp.version-control.subversion.devel,gmane.comp.version-control.subversion.rapidsvn.devel |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> mailing list.
To subscribe to the new list, send an empty e-mail to <[email protected]>.