A TALES expression may be prohibitively expensive in any case, no matter how simple it is kept. Please make sure to do some comparative profiling. Cache keys are recomputed on every call of the script, AFAICS. The thought of doing this in restricted Python makes my skin crawl.


On 26. Mai 2005, at 09:12, Chris Withers wrote:

Paul Winkler wrote:

I kinda wish the RAMCache manager allowed other things than
REQUEST variables for differentiation. Arbitrary TALES expressions
would be nice. Then we could get rid of this hard-coded gunk and
get the same effect by having context/getPhysicalPath as one
of the expressions.
But of course then you'd have the opportunity to kill your
cache performance by making the expressions too expensive.
Ah well, TANSTAAFL and all that. I'll probably just drop the idea.

I still think it's worth it. Crippling everyone on the basis that stupid people can hurt themselves is not good logic in my books ;-)

If you could chuck this as a feature request in the collector and assign it to me, I'd love to work on it if I ever find the time...



Software Engineering is Programming when you can't. --E. W. Dijkstra

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Zope-Dev maillist  -  Zope-Dev@zope.org
**  No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )

Reply via email to