[Zope-CMF] [Optimization] "listFilteredActionsFor"

Dieter Maurer dieter at handshake.de
Sun Apr 2 15:36:03 EDT 2006


Yuppie already has considerable sped up "listFilteredActionsFor"
for CMF 1.5. However, even after his optimizations "listFilteredActionsFor"
can still consume lots of time.
I found simple situations where it had spend more then 10 percent of
total request time in "testCondition".

I propose to make the category lists lazy objects that perform
condition and permission evaluation only when they are accessed.
This means that action categories not used on a specific page
would not have the expensive "testCondition" evaluated.

-- 
Dieter


More information about the Zope-CMF mailing list