[Zope-CMF] [Performance] "listFilteredActionsFor" unnecessarily
expensive
Andreas Jung
lists at andreas-jung.com
Wed Apr 6 01:51:33 EDT 2005
--On Dienstag, 5. April 2005 21:44 Uhr -0800 Alec Mitchell
<apm13 at columbia.edu> wrote:
> sure it all depends on the specific use case. Whatever the case, this
> check is almost certainly unnecessary, whereas the condition checks are
> unavoidable and difficult to optimize.
>
If the check should be necessary then it could be replaced with a check
using
a mapping having a constant access time instead of a running time
proportional to
the number of actions :-)
-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-cmf/attachments/20050406/09b12916/attachment.bin
More information about the Zope-CMF
mailing list