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

Re: Slow performance in check-case-insensitive.pl?

From: Martin Tomes <lists_at_tomes.org>
Date: 2005-07-26 09:57:23 CEST

Marc Sherman wrote:
> Nathan Kidd wrote:
>
> Hrm. Thanks for the pointer. However, the new python script actually
> seems to be _worse_ than the old perl script.
>
> Here's with the old perl script enabled:
>
> msherman@TO-SCM-01:~$ time svn mkdir
> http://$SERVER/repos/svntest/tags/empty-test -m "create empty tag dir"
>
> Committed revision 146.
>
> real 0m31.552s
> user 0m0.018s
> sys 0m0.005s
>
> and top shows:
>
> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> 16255 apache 25 0 7060 1708 5404 R 99.3 0.1 0:11.37 svnlook
> 16251 apache 16 0 9088 5656 2920 S 12.3 0.3 0:01.53 check-case-inse
>
> With the new python script enabled:
>
> msherman@TO-SCM-01:~$ time svn mkdir
> http://$SERVER/repos/svntest/tags/empty-test-2 -m "create empty tag dir"
>
> Committed revision 147.
>
> real 0m39.686s
> user 0m0.018s
> sys 0m0.008s
>
> and top shows (note that svnlook is no longer the big hog,
> check-case-insensitive.py is instead):
>
> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> 17059 apache 25 0 15912 11m 4672 R 99.9 0.6 0:27.28 check-case-inse

I am surprised it takes longer. Luckily not much longer! Currently it
is still doing a recursive listing of the repository which isn't really
needed. The next step is to stop it doing that, but right now I don't
have time to do that. I will try to get to that as soon as I can but we
have a product to release and then I am going on vacation for a week.

Adding files or directories at the top of a large tree in the repository
will be the worse case.

The old script can miss filename clashes, so the new one is an
improvement, honest:-)

-- 
Martin Tomes
echo 'martin at tomes x org x uk'\
  | sed -e 's/ x /\./g' -e 's/ at /@/'
Visit http://www.subversionary.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jul 26 10:02:31 2005

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