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

Re: svnlook alternatives ?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-01-13 22:55:08 CET

On Jan 13, 2005, at 3:42 PM, Elie `woe` BLETON wrote:
> I rewrite most of the script and added a few calls to "svnlook".
> It's amazing how slow it is. I'm launching seven sequential "svnlook
> youngest" requests, and it takes almost one second to complete.

That's an interesting definition of "slow". :-)

Every time you run 'svnlook', you get:

   1. overhead in launching a new process
   2. overhead in opening the database
   3. overhead in closing the database

Now multiply those things by seven.

If you want to make a bunch of repository queries, Ii would be far more
efficient to use the libsvn_fs API... either in C, perl, or python.
(There are no PHP bindings yet.) That way you avoid problem #1
altogether, and you only have to open/close the database exactly once,
not 7 times.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jan 13 22:58:57 2005

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