Am 13.07.2006 um 23:18 schrieb Vlad Seryakov:

You are right and now i see that Naviserver does not do this right
because our global cache keeps strings only. It looks like waste of
resource now caching file contents only but ns_share uses Tcl_Objs
internally, so it is possible to use it instead maybe?

As I said: if you move bytecodes from interp to interp, they
get recompiled. The only way you can do that (bytecode cachbing)
is to keep it in the same thread and interp and this is what
Tcl procedures are already doing.

Storing Tcl-Ojb in cache makes sense only if the internal
rep does not get changed. In case of bytecodeds this will
mostly happen.

Cheers
Zoran



Reply via email to