Zoran Vasiljevic wrote: > Am 25.05.2005 um 21:17 schrieb Jeff Hobbs: > > I've mentioned it before, but I'll stress it again - it is possible to > > improve this speed, possibly dramatically. If one were to go into the > > mod-8-3-4-branch that ActiveState did for Cisco, you will find some > > interesting core changes. One of them is an implementation of > > Tcl_CloneInterp. That would likely have a large impact, but it > > wouldn't be trivial to port to the head and make thread-safe (est 3-4 > > weeks).
> Are you sure it is possible to low-level clone an > interp from one thread and pass it to another? > AFAIK, the interp should not jump threads and > more importantly reference any Tcl_Obj's from > the initial thread where the master interp > was created. Each interp is in its own thread. The "cloning" is actually a low-level deep copy of data structures and Tcl_Objs. The work to be done to ensure it is thread-safe would be making sure the deep copy is deep enough that we don't share any Tcl_Obj's between threads, which isn't allowed (you have to copy them). > This seems like a very complex task, if possible > at all... Complex, yes, but still possible. Jeff -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
