Am 13.07.2006 um 23:15 schrieb Andrew Piskorski:
Must they always though? That is also how the nsv_* commands worked, but I think Zoran's tsv_* commands do special work to retain the internal rep of many objects across tsv_set and tsv_get.
Yes, but only for certain "known" types of Tcl objects. You can't cache bytecodes thread-wide because they contain literals and they are entered per-reference in bytecode rep. Even my tsv "tricks" will not work. Moreover, bytecodes get re-compiled when jumping interp so this all bytecode caching stuff is really not something I would do from the cost/gain perspective. The only real practical caching of bytecodes is moving more code into Tcl procedures and putting less code in the page itself. Cheers Zoran
