On 4/16/06, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > Yes, it is more convenience but even nsv_ shared variables work the same > way, keep stringified values and objectifies on the return.
But for nsv shared variables you *have* to stringify because Tcl objs can not pass between threads. Here your explicitly looking for thread local, so stringifying would seem to be an unnecessary slowdown. > We decided to get rid of thread specific caches and keep global ones > only, and at that time i was for it but now i think simple thread local > cache should be in the core to offer more flexibility to the developer. This isn't a cache, there's no eviction policy. I don't see how ns_tlsthis isn't exactly equivalent to: set ::tcl_MyMache Whatever which has the big advantage of keeping Tcl objects in object form.
