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

Working copy operations that are worse than O(change size)

From: Stefan Fuhrmann <stefanfuhrmann_at_alice-dsl.de>
Date: Sat, 19 May 2012 20:34:12 +0200

Hi Bert & interested parties,

as promised, I ran the create_bigdir.sh benchmark with the
latest commit harvester improvements (r1340484). While
I do see some speedup, the following operations have runtime
that is not proportional to the size of the change, i.e. they
exhibit O(n^2) behavior.

All statements are run in directories that are directly below
the WC root and contain(ed) no sub-directories.

* svn cp WC/dir1 WC/dir2
   is O(entries in dir1)

* svn del WC/dir/file
   are O(entries in dir).

* svn ci WC/dir
   after deleting every single file in dir
   is O(files in dir ^ 2) because
   is O(files in dir) in both calls of from
   O(files in dir) as well.

It would be nice if these queries could be fixed for 1.8.

-- Stefan^2.
Received on 2012-05-19 22:35:10 CEST

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