From: Zoran V. <zv...@ar...> - 2006-04-19 20:09:58
|
On 19.04.2006, at 21:18, Stephen Deasey wrote: > > If any one's interested in looking into thread local caches: So we are back to thread local caches, storing objects directly i.e. w/o shimmering... I believe this is simpler to do as thread-wide stuff as there is no locking involved, or? Zoran > > I was thinking that this could be pushed down into the C API. But I > don't know if this makes sense. More checking of how the ADP code > uses thread local caches for Tcl code needs to be done. > > We could add a flags option NS_CACHE_THREAD_LOCAL or whatever to > Ns_CacheCreate(). Ns_CacheLock/Unlock could depend on this flag. > > One thing I looked at is gathering stats in the thread local cache and > then periodically flushing them to some common structure. I think > there's an example of this in the cache code I posted to the SF > tracker. > > Unfortunately you can't keep it completely in the C layer, as you'd > like to optimise Tcl by storing Tcl objects directly, rather than > stringifying them. > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, =20 > security? > Get stuff done quickly with pre-integrated technology to make your =20 > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache =20 > Geronimo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=120709&bid&3057&dat=121642= > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel |