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

Re: [PATCH] speed up svn_repos_authz_check_access

From: Roderich Schupp <roderich.schupp_at_gmail.com>
Date: Thu, 8 Aug 2013 01:15:04 +0200

On Wed, Aug 7, 2013 at 11:08 PM, Ben Reser <ben_at_reser.org> wrote:

> Yes that's true. I know there are people out there with very large
> authz files though. Your cache isn't going to use much extra memory
> for most connections.
>

We could shave off some more if we integrated the cache into svn_config_t.
But that would break encapsulation. Actually the current svn_config_t
contains
stuff totally irrelevant for the authz case, e.g. cfg_option_t->x_value -
authz files don't contain variables that need to be expanded.

It's more than that. In the worst case scenario where the users
> change for every request then you're doing the work to build a cache
> that's torn down without ever being used.
>

Correct, but the cache gets filled lazily, so we only call
svn_config_enumerate2() when using the cache if we would have called
it without the cache, too. And these calls are were the cycles are spent.

Actually I think that your worst case scenario should be illegal
and that Apache should close a connection when the user changes
between requests.

Anyway, I'm about to take a few days off, so I won't follow this up
until Monday.

Cheers, Roderich
Received on 2013-08-08 01:15:38 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.