On 09/11/2015 08:22 PM, Anton Osennikov wrote:
11.09.2015 14:18, Massimo Manghi пишет:

Interpreters will be created and initialized only when the first request
for a specific virtual host comes in

I doubt that to initialize an intrepreter when request comes is a good
solution.

I'm running a custom rivet child init script now which creates child
interpreter for a virtual host on the first request for this virtual
host, and loads Tcl code into this interpreter via "source".

It worked good enough for years.

After upgrade from Tcl8.5 + Itcl3 to Tcl8.6 + Itcl4 some Tcl source
files are loaded many times (>50) slower now. These are modules that
create hundreds (about 500) of Itcl objects. These objects describe
implemented report items: tables, columns, charts, etc.

Then why did it stop working the way it worked with Tcl 8.5? I think this is the question to be answered.


As a possible workaround I'm looking for a way to pre-load my sources
before actual request comes now..


This is the way ChildInitScript works now, it runs before requests come in, why didn't it work for you? We have also the GlobalInitScript (actually only when separate virtual interpreters are disabled)

 -- Massimo

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to