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.