Please tell me svn isn't this slow.

schwern on 2004-10-17T03:11:14

I'm considering moving from CVS to Subversion now that svn finally installs cleanly with fink on OS X. However...

$ time svn --version > /dev/null

real 0m0.960s user 0m0.870s sys 0m0.040s

$ time cvs --version > /dev/null

real 0m0.040s user 0m0.000s sys 0m0.020s


Please, please, please tell me every Subversion command isn't going to take a minimum of a second to execute.


That's kind of weird...

rooneg on 2004-10-17T04:05:36

I don't know what's making it so slow for you, but that's certainly not what I'm seeing here on OS X.

$ time svn --version > /dev/null
real 0m0.130s
user 0m0.060s
sys 0m0.000s

What version of svn are you using, just out of curiosity? And can you perhaps try and get a handle on what it's doing? Perhaps some ktrace output?

something else...

lachoy on 2004-10-17T04:30:01

It's probably something else; on my OS X (svn: 1.05) I got:
shazam:~ cwinters$ time svn --version > /dev/null

real    0m0.066s
user    0m0.050s
sys     0m0.020s
shazam:~ cwinters$ time cvs --version > /dev/null

real    0m0.091s
user    0m0.000s
sys     0m0.020s

My only use of svn has been on win32. There I found that for everything except checking out it was as fast or faster than cvs. Checking out an SVN branch is remarkably slow, but you only take the hit once.

Having 'svn status' and 'svn diff' that don't have to go out to the repository to get information is excellent.

I'm hesitant to move from CVS though because at least in the 1.0 series svn used Berkeley DB; I've had BDB storage corrupt more often than filesystems and it's not worth the pain. I heard svn 1.1+ allows you to store in the filesystem though...

slow version

gabor on 2004-10-17T09:42:14

There was some discussion on the subversion users mailing list of the slowness of some of the recent versions. While I am not sure it is related to what you are experiencing I read it is going to be fixed soon.

Re:slow version

rooneg on 2004-10-17T14:27:14

The slowness that was discussed on the list was related to the operation that underlies the 'svn list' command, and only when used over the ra_dav ra layer. It'll be fixed in 1.1.1, which should be out in the next day or so, the fix was already released as part of 1.0.9 if you're still using the 1.0.x series of releases.

That said, that problem has nothing to do with what he's seeing here.

IPV6?

phillup on 2004-10-20T01:23:33

Check and make sure your system isn't trying to use IPV6 for name resolution. It can slow down the first connection to a system (even localhost).

Does it give the same speed difference if you do them in reverse order?