Re: Work in progress: WC "add node" including the props
From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Thu, 20 Dec 2012 23:42:50 +0000 (GMT)
I (Julian Foad) wrote:
I finished this and committed it in <http://svn.apache.org/r1424739>.
I did this because of the update-move work: that needs more "regular" APIs to both read and write nodes in the DB. As in we should be able to read "a node" including (a reference to) its text and its props in one call. And similarly write "a node" in one call.
Afterwards, I ran a test to see whether this makes a noticeable speed difference to "svn add", just as a curiosity -- I don't really care about that and that wasn't any part of my goal. Speed freaks may be interested in the outcome. In an unrealistic manual test, I put an unversioned export of the svn trunk inside an otherwise empty WC, and ran "svn add" with 25 auto-props defined on every file.
$ time svn add wc/tree/ --config-option='config:miscellany:enable-auto-props=1' --config-option='config:auto-props:*=a=a;b=b;c=c;d=d;e=e;f=f;g=g;h=h;i=i;j=j;k=k;l=l;m=m;n=n;o=o;p=p;q=q;r=r;s=s;t=t;u=u;v=v;w=w;x=x;y=y'
This is expected because the patch eliminates the add-one-property-at-a-time-to-the-db loop.
Without any auto-props:
$ time svn add -q wc/tree/
This was on my Ubuntu 10.10 system, ext3 FS on a spinning disk. Timings approx +/- 15%, averaged by eye from 3 runs.
This is an archived mail posted to the Subversion Dev mailing list.