On Thursday, September 20, 2001, at 10:39 AM, Jim Wilcoxson wrote:

> I think the idea of redefining the unknown command is good.

OK, I'm sorry to do this to you, but you seem to be the best candidate to
be an experimental subject for this.  Can you make some changes to your
Tcl libraries and report on the findings?  The changes I have in mind are
as follows:

- define a new command called "rl_proc", which takes three arguments, and
is used instead of "proc" to define your commands.  In rl_proc, you would
store the arg list and body in an nsv keyed by the proc name

- define an unknown proc which consults the nsv for the command name, and
if it's found, executes "proc" with the arg list and body from the nsv.
If the proc is unknown, you can return an error

This would allow you to simulate the dynamic proc definition without
needing changes to AOLserver.  If you do this, let us all know if this
makes a difference in thread startup times, and in overall performance,
and if there's a positive change, we can try to attack any necessary
changes in AOLserver.

In the absence of information about sharing compiled Tcl objects between
interpreters, I can't see a way to address the memory footprint issue
right now, but we could see if the thread startup issue helps in terms of
time and maybe memory.

Reply via email to