[Zope-dev] LOTS of roles?

Dieter Maurer dieter@handshake.de
Tue, 25 Feb 2003 23:33:54 +0100


Paul Winkler wrote at 2003-2-24 16:27 -0500:
 > ...
 > >   It is easy to optimize this to "u + a" (via a dictionary),
 > >   then thousands of roles should not be a problem.
 > 
 > would that mean you have to build a (potentially huge) dictionary every 
 > time?  I'd greatly appreciate it if you could expand on this suggestion.

Even when you create the dictionary anew each time, it will have
(almost) "u+a" complexity.

However, the dict might be cachable in volatile variables
(i.e. "_v_" variables).

As it is not my problem, I am a bit reluctant to search
for optimazation possibilities.


Dieter