Hi!

I have included the ttrace module which allows for
alternative Tcl interp initializations.

To enable, edit the sample-config.tcl and set

   ns_section ns/server/$servername/ttrace
   ns_param        enabletraces            true


This way all "things" loaded into an interp during startup
will just be recorded in ttrace database. At new thread
creation, a short bootstrap script will be installed
instead of a full-blown (potentially very large) init
script. This one overrides the Tcl unknown method and loads
required "things" definitions on-demand.

All this results in memory footprint of the server reduced
to about one third (or one half) and much faster thread
creation.

Please test with your setup and report any problems you
might find out.

Cheers
Zoran

Reply via email to