1] https://www.tcl.tk/software/tcltk/8.0.html#What's%20New%20in...
Tcl 8.4+ will byte code compile the proc's, and part of that is removing the comments from the code execution path. So comments only get 'seen' once (at byte code compilation time, upon first use of a proc) and then have no effect on execution performance from that point forward.
#! /bin/sh
# the next line restarts using tclsh \
exec tclsh "$0" ${1+"$@"}
This page is just filled with wow:https://wiki.tcl-lang.org/page/comment
with an especial nod toward:
set two [1 + 1] ;# line comment needs a statement terminatorWhether that is the best way to solve their problem is another story, but that feature does get used.
Whether a function was inlineable was decided based on its size - and that was determined based on size-as-text instead of size-as-AST.
This lead to the situation where adding too much comment text (I believe it was 512 bytes total for the function) led to the inliner refusing to inline the code, and thus performance regressions.