Personally, I test alternatives inside a [time] loop. TCL will often
surprise you because the interpreter overhead will outweigh other
considerations. What makes sense for a compiled language like C often
does not carry over to an interpreted language.
Jim
>
> On Thu, Apr 26, 2001 at 04:36:30PM -0500, Rob Mayoff wrote:
> :: snip ::
> > % set showDate [clock format "$intDate" -format "%a%m/%d"]
> :: snip ::
> > However, that uses a lot of quotes that may end up creating extra
> > objects in the interpreter, wasting time and memory. This is better
> > style:
> :: snip ::
> > % set showDate [clock format $intDate -format "%a%m/%d"]
>
> What is a good place to learn proper TCL style and coding for performance?
>