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

Re: [PATCH] Implement svnadmin verify --force

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Wed, 31 Oct 2012 17:24:38 +0000 (GMT)

Daniel Shahaf wrote:

> Julian Foad wrote on Wed, Oct 31, 2012 at 17:14:02 +0000:
>> Prabhu Gnana Sundar <prabhugs_at_collab.net> wrote:
>> > +notify_verification_error(svn_revnum_t rev, svn_error_t *err,
>> > +                          svn_repos_notify_func_t notify_func,
>> > +                          void *notify_baton, apr_pool_t *pool)
> Another thing I noticed is that this function re-allocates
> a notification object every time it's called.  I'm not sure, but it
> might be a good idea to rework it to allocate a single notification
> object per call to svn_repos_verify_fs3() (as the "Verified revision
> %ld." notification already does)?

That sounds like over-optimization to me, if your goal is to avoid a bit of run-time overhead each time we send a notification.  I can't imagine how that overhead could be significant.

However, if your goal is to be consistent with an existing notification function, then +1.

- Julian
Received on 2012-10-31 18:38:25 CET

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