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

Re: API to get revision size on disk

From: Julian Foad <julianfoad_at_apache.org>
Date: Tue, 16 Apr 2019 03:06:34 -0400

I have committed an implementation in http://svn.apache.org/r1857624 , using Evgeny's new libsvn_fs ioctl API.

It is feature-complete (old and new FSFS formats, revs and revprops, packed and unpacked.

The CLI is:

    $ svnadmin rev-size /path/to/repo -r1
            1337 bytes in revision 1

plus a 'quiet' option.

There are a couple of opportunities for optimization marked in the code:
1. for the size of an unpacked rev-file, we unnecessarily read the indexes
2. for the size of packed revprops, we unnecessarily read the props

-- 
- Julian
Received on 2019-04-16 09:06:45 CEST

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

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