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

Re: What file system structure a SVN transaction follow ?

From: Blair Zajac <blair_at_orcaware.com>
Date: Fri, 30 Apr 2010 23:26:41 -0700

On 4/30/10 4:15 AM, Ravi Roy wrote:
>
> Not really sure. making a file *svnlook cat* will definitely slow down
> operations (specially for big files).
> But anyway file has to be transferred to server before transaction size
> could be computed.
> So until commit is taking place, it would not be part of repo.
> Does somebody knows an optimum way how this could be achieved without
> causing performance bottlenecks?

If you use the SWIG bindings and the svn_fs API directly, then you can use
svn_fs_file_length() to get the length of the file without catting it.

Here's the API that the bindings are build from:

http://svn.apache.org/repos/asf/subversion/trunk/subversion/include/svn_fs.h

Regards,
Blair

-- 
Blair Zajac, Ph.D.
CTO, OrcaWare Technologies
<blair_at_orcaware.com>
Subversion training, consulting and support
http://www.orcaware.com/svn/
Received on 2010-05-01 08:27:28 CEST

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.