[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: Marc Sherman <msherman_at_projectile.ca>
Date: 2005-07-25 23:15:22 CEST

Nathan Kidd wrote:
>
> The old perl version of this script is deprecated. (It was doing a
> recursive svnlook on any changed paths. This was fine when working deep
> in a tree, but for actions like creating a tag as you are doing it means
> enumerating a huge swath of the tree.)
>
> Martin Tomes (the script author) posted this to the TortoiseSVN list a
> few days ago: http://svn.haxx.se/tsvn/archive-2005-07/0754.shtml
>
> Essentially check the svn trunk for a newer Python version of this script.

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

- Marc

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jul 25 23:16:41 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.