+---------- On Feb 26, Jeff Hobbs said:
> Also, I believe you implied that you were using a proc, but it is
> important to note that toplevel code will be slower if large loops
> are used without putting them in procs. This is by design.
And boy was that annoying when we (ArsDigita) wanted to cache .tcl page
bytecode, because .tcl pages are normally executed with the "source"
command, which doesn't compile. We ended up taking advantage of the
fact that "for" (in Tcl_ForObjCmd) compiles its first argument, e.g.
for [util_file_contents_cached $filename] {0} {} {}
...compiles the string returned by util_file_contents_cached.