[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: Philip Martin <philip.martin_at_wandisco.com>
Date: Fri, 09 Aug 2013 15:46:28 +0100

Ivan Zhakov <ivan_at_visualsvn.com> writes:

> As far I understand cache will be very inefficient if authorization
> file will be bigger than configured limit. I real world cases cache
> will hold data for every configured path if user run svn log on
> repository root or something.

We could cache the results of authz_parse_line. That would limit the
cache size as it would only grow to the number of sections in the file.
Also authz_parse_line is often the expensive bit as it involves checking
the user against all the rules while handling groups and aliases.

When we call svn_config_enumerate2(... authz_parse_line ...) store
section in baton. Then in authz_parse_line use the section from the
baton to check the cache and return the cached result if possible, if
not do the current processing and populate the cache.

-- 
Philip Martin | Subversion Committer
WANdisco | Non-Stop Data
Received on 2013-08-09 16:47:07 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.