subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache subversion Wiki <comm...@subversion.apache.org>
Subject [Subversion Wiki] Update of "AuthzImprovements" by StefanFuhrmann
Date Wed, 21 Dec 2016 20:20:10 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Subversion Wiki" for change notification.

The "AuthzImprovements" page has been changed by StefanFuhrmann:
https://wiki.apache.org/subversion/AuthzImprovements?action=diff&rev1=18&rev2=19

  So, the full lookup without caching is as shown below.  For efficiency, the implementation
will check the accumulated global rights calculated by the parser before performing a tree
lookup. There are probably many cases where the result of any lookup can be predicted from
those rights, and therefore the lookup itself, and even creation of the filtered tree, could
be skipped entirely.
  {{{
      lookup(tree : ref to filtered-tree, path : string):
-     state = init(tree)
+         state = init(tree)
-     foreach segment in path
+         foreach segment in path
-         if done(state)
+             if done(state)
-             break;
+                 break;
-         state = step(state, segment)
+             state = step(state, segment)
-     return state.rights
+         return state.rights
  }}}
  
  == Better Access Control ==

Mime
View raw message