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

RE: Really lousy performance with svn info --depth infinity

From: <michael_rytting_at_agilent.com>
Date: Thu, 1 Sep 2011 10:11:56 -0600

Hmm,

Seems to be worse when my working copy is on an nfs mounted drive, if my working copy is on a locally mounted drive than the performance of the 2 commands is not as different.

-> time svn info --depth infinity > /dev/null

real 0m7.697s
user 0m6.606s
sys 0m1.085s

-> time svn ls --depth infinity | xargs svn info

real 0m1.540s
user 0m0.514s
sys 0m0.223s

My wc.db is pretty big weighing in at 3.1M

-----Original Message-----
From: Philip Martin [mailto:philip.martin_at_wandisco.com]
Sent: Thursday, September 01, 2011 10:01 AM
To: Bert Huijben
Cc: RYTTING,MICHAEL (A-ColSprings,ex1); dev_at_subversion.apache.org
Subject: Re: Really lousy performance with svn info --depth infinity

"Bert Huijben" <bert_at_qqmail.nl> writes:

> These operations do very different things. The first reads your
> working copy to obtain a lot of details (unless you pass a revision;
> in that case it looks at the repository)
>
> The second asks the repository what files there are below the current
> directory in the repository (using the revision of the current
> directory).

Both commands access the working copy to read the info for every file and directory.

> In my usage (repository hosted via http:// on the other side of the
> world) the second is much slower. But if you have a local repository
> the opposite might be true.
>
> I think this question belongs on users{_AT_}subversion.apache.org
> though, as it is about using Subversion and not on Subversion
> development.

I disagree. Since both commands pull all the info from the working copy it is a problem if the single recursive call is slower than multiple
non-recursive calls. If this is reproducible then we want to know why,
however I cannot reproduce it on my machine.

> From: michael_rytting_at_agilent.com [mailto:michael_rytting_at_agilent.com]
> Sent: donderdag 1 september 2011 17:26 To: dev_at_subversion.apache.org
> Subject: Really lousy performance with svn info --depth infinity
>
> Quick question. I would expect the following 2 commands to perform
> equivalent functions.
>
> svn info -depth infinity
>
> svn ls -depth infinity | xargs svn info
>
> This issue is that the first command takes 1 minute to run while the
> second command takes 6 seconds to run. I am running 1.7.0-rc2.

--
uberSVN: Apache Subversion Made Easy
http://www.uberSVN.com
Received on 2011-09-01 18:12:26 CEST

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.