3 ms·
In Tcl, procedures are bytecode-compiled when they are created, which is generally when the files containing their code are sourced. Code outside procedures is
by blacksqr 8y ago
In Tcl, procedures are bytecode-compiled when they are created, which is generally when the files containing their code are sourced.
Code outside procedures is not compiled, but interpreted line-by line as it is executed.
So if you care about the performance of your Tcl code, put as much of it as you can into procedures.