On Wednesday 13 August 2003 17:51, Rob Mayoff wrote: > +---------- On Aug 13, Zoran Vasiljevic said: > | Although I doubt that this kind of function is possible to implement > | generically in mt-safe fashion, one may get a good approximation > | which would (could) be satisfactory for the AS usage. > > AOLserver could keep an initialized "donor" interpreter around (for > each VS) that is never used to execute code after it executes the init > script. Initializing another interpreter becomes a matter of cloning the > donor interpreter. Serializing the cloning operation between threads > might be necessary, but shouldn't have a significant performance impact. >
This is correct. One may also try to load from bytecodes instead of the string (TclPro compiler, right?). This may reduce the time to get the donor/master up. But still, I'd like to get some initiative to get Tcl_CloneInterp() in place because this is *very* sexy. Zoran -- 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.
