[Zope-dev] RAMcache and container vs. context
Stefan H. Holek
stefan at epy.co.at
Fri May 27 05:59:12 EDT 2005
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.
Stefan
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...
>
> cheers,
>
> Chris
--
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.
More information about the Zope-Dev
mailing list