From: Zoran V. <zv...@ar...> - 2005-12-30 14:52:19
|
Am 30.12.2005 um 15:46 schrieb Vlad Seryakov: > I have web applications and server applications running on our =20 > server and in my experience so far i always prefer global caches =20 > over per-thread cache. If you need something local in long running =20 > thread, you can use Tcl global variables to keep state during the =20 > processing, even namespace variables. It is just one Tcl =20 > interpreter anyway. =10True. 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= |