On 2018-11-09 09:54, Christian Gollwitzer wrote:
> Overriding a command from within Tcl using rename works also with byte
> coded commands, so maybe you could replicate this behaviour from C?
Will try. I'm not sure however about performance of this solution.
> Another option to consider, how about a safe interpreter?
I'm not quite sure what is "safe intepretter", I'm guessing that You
talking about using interpreter instead of compiled one. Maybe, however
speed is critical, since tracing was slower than proxying I'm guessing
interpreting will be even slower.
> Are you writing a debugger,
> profiler or trying to restrict access?
TCL is embedded in quite heavy application. For controlling it. Since
this control also needs to be optimized we wish to know what is going on
in TCL to be able to optimize some of our behavior while script is
executed. Basically I need to know that certain command will be executed
before it is. It is quite critical for us.
We need all speed we can get from TCL. That is why I'm sceptic about
interpreter solution.