Am 30.12.2005 um 15:46 schrieb Vlad Seryakov:

I have web applications and server applications running on our server and in my experience so far i always prefer global caches over per-thread cache. If you need something local in long running thread, you can use Tcl global variables to keep state during the processing, even namespace variables. It is just one Tcl interpreter anyway.

True. But the state can be accumulating over time, though,
leading to extensive memory usage. Hence the cache, as it
can selecively expire things.

But...

I haven't any code needing per-thread caches, yet.
As a tool in the toolbox, OK, but I will not press
on that. I'm perfectly happy with global caches.

Zoran

Reply via email to