You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by John Belmonte <jo...@neggie.net> on 2005/04/30 02:25:13 UTC

svn log --limit not performing

Using svn 1.2rc2 with direct file access to a repo, "svn log --limit"
does not exhibit the performance characteristic I expected.  The only
time it works quickly is when I give it the repository root.  For
example, "svn log --limit 2 file:///myrepo/root" takes 1s, compared to
target file:///myrepo/root/foo which takes 35s (the repo is about 5000
revs on a slow NFS).  Does that make any sense?  Using a working copy
target is equally slow.

-John

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn log --limit not performing

Posted by John Belmonte <jo...@neggie.net>.
Peter N. Lundblad wrote:
> On Fri, 29 Apr 2005, John Belmonte wrote:
> 
> 
>>Using svn 1.2rc2 with direct file access to a repo, "svn log --limit"
>>does not exhibit the performance characteristic I expected.  The only
>>time it works quickly is when I give it the repository root.  For
>>example, "svn log --limit 2 file:///myrepo/root" takes 1s, compared to
>>target file:///myrepo/root/foo which takes 35s (the repo is about 5000
>>revs on a slow NFS).  Does that make any sense?  Using a working copy
>>target is equally slow.
>>
> 
> Yes, looking at the code, one sees that log isn't as streamy as it could
> be. If you have time, you could file an issue for it.

Posted as issue 2290
(http://subversion.tigris.org/issues/show_bug.cgi?id=2290).

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn log --limit not performing

Posted by "Peter N. Lundblad" <pe...@famlundblad.se>.
On Fri, 29 Apr 2005, John Belmonte wrote:

> Using svn 1.2rc2 with direct file access to a repo, "svn log --limit"
> does not exhibit the performance characteristic I expected.  The only
> time it works quickly is when I give it the repository root.  For
> example, "svn log --limit 2 file:///myrepo/root" takes 1s, compared to
> target file:///myrepo/root/foo which takes 35s (the repo is about 5000
> revs on a slow NFS).  Does that make any sense?  Using a working copy
> target is equally slow.
>
Yes, looking at the code, one sees that log isn't as streamy as it could
be. If you have time, you could file an issue for it.

Best,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn log --limit not performing

Posted by John Belmonte <jo...@neggie.net>.
Kevin Puetz wrote:
> John Belmonte wrote:
> 
>>Using svn 1.2rc2 with direct file access to a repo, "svn log --limit"
>>does not exhibit the performance characteristic I expected.  The only
>>time it works quickly is when I give it the repository root.  For
>>example, "svn log --limit 2 file:///myrepo/root" takes 1s, compared to
>>target file:///myrepo/root/foo which takes 35s (the repo is about 5000
>>revs on a slow NFS).  Does that make any sense?  Using a working copy
>>target is equally slow.
>>
>>-John
> 
> One obvious suspect is that it's having to scan a lot more revisions to find
> 2 of them that affect /foo. On the root, --limit 2 is the first two
> revisions no matter what; deeper in, it could have to go back a long way.

That's not the case here-- my most recent commits were inside
file:///myrepo/root/foo.

Can anyone else confirm this behavior?

--John

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn log --limit not performing

Posted by Kevin Puetz <pu...@puetzk.org>.
John Belmonte wrote:

> Using svn 1.2rc2 with direct file access to a repo, "svn log --limit"
> does not exhibit the performance characteristic I expected.  The only
> time it works quickly is when I give it the repository root.  For
> example, "svn log --limit 2 file:///myrepo/root" takes 1s, compared to
> target file:///myrepo/root/foo which takes 35s (the repo is about 5000
> revs on a slow NFS).  Does that make any sense?  Using a working copy
> target is equally slow.
> 
> -John

One obvious suspect is that it's having to scan a lot more revisions to find
2 of them that affect /foo. On the root, --limit 2 is the first two
revisions no matter what; deeper in, it could have to go back a long way.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org