[Zope-CMF] [Optimization] "listFilteredActionsFor"
jens at dataflake.org
Sat Apr 8 06:07:49 EDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
On 2 Apr 2006, at 20:36, Dieter Maurer wrote:
> Yuppie already has considerable sped up "listFilteredActionsFor"
> for CMF 1.5. However, even after his optimizations
> 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.
I'm sure you have some code samples or ideas for how to make that
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
-----END PGP SIGNATURE-----
More information about the Zope-CMF