On 2005.02.25, Jeff Hobbs <[EMAIL PROTECTED]> 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
> on a P4/2.8:
...
>
> That is 3 milliseconds to create and delete the interpreter.
That doesn't include all of the Tcl procs that AOLserver loads into the
interp. before it's actually ready to process a request, though.
Zoran's "ttrace" extension might help here, but "ttrace" doesn't give
you the performance boost of Tcl's parsing and byte compiling on first
execution, and subsequent executions are just calls into the bytecode.
> > 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.
Exactly. So, for AOLserver to continuously tear down and recreate Tcl
interps is a huge time-suck.
-- Dossy
--
Dossy Shiobara mail: [EMAIL PROTECTED]
Panoptic Computer Network web: http://www.panoptic.com/
"He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)
--
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.