[Zope-Checkins] CVS: Zope2 - User.py:1.89
Brian Lloyd
brian@korak.digicool.com
Thu, 9 Sep 1999 13:53:31 -0400
Update of /cvs-repository/Zope2/lib/python/AccessControl
In directory korak.digicool.com:/projects/sites/devzope/lib/python/AccessControl
Modified Files:
User.py
Log Message:
Added careful caching to getRolesInContext, which is an expensive op
that requires climbing the entire aq chain on every call (and it gets
called a *lot*). A little investigation revealed that it is called
over and over for the same objects during a request for complex pages,
so a cache was added that can cut the work down to about 10% of its
current level.