Forum OpenACS Development: Re: Can we use namespace variables to avoid upvar?

Posted by Andrew Piskorski on
Alfred, I don't think Zoran intended ttrace to address this per-thread namespace cleanup issue at all. In fact I think what it does is sort of exactly opposite. If I remember right, ttrace hooks into Tcl's 'uknown' command to find procedure definitions and things which don't exist yet in the current thread. The benefit of that is it lets you greatly decrease AOLserver server and thread startup times in some cases, and maybe it can tend to reduce the memory footprint too (I don't remember).

On the other hand, What Jon G. and others would like here, is some sort of removal of left over global and namespace variables from the thread when each connection request completes its processing.

It wouldn't hurt to ask Zoran about it though, he's likely to have some ideas.