On Fri, Feb 25, 2005 at 09:44:59AM -0800, Jeff Hobbs wrote: > Eh? Tcl interpreters are pretty lightweight, in terms of cost > to create and kill. This is the timing on Windows with 8.4.9
> That is 3 milliseconds to create and delete the interpreter. > > When AOLserver initializes a new thread, how much of that > > time is spent in setting up the Tcl interp (and all its > > procs)? Am I correct in assuming that it is the vast majority? > > Now this of course is something different. The init of the > thread, and the way AOLServer does it, is where you will find a > good chunk of time taken up. When you say "init of the thread", what do you mean exactly? Copying all the procs to the Tcl interpreter? (I would call that part of initializing the interp, not the thread.) Or something else? Hm, if all the overhead is in copying the procs to the interp, then maybe Zoran's ttrace, besides its other advantages, would also let you cheaply destroy and re-create Tcl interps at will in AOLserver? -- Andrew Piskorski <[EMAIL PROTECTED]> http://www.piskorski.com/ -- 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.
