I was doing some looping recently with tcl and comparing against another implementation (called Jim [1], a very cool project in its own right) and wondered why datetime formatting was so slow when using `clock format`.
The code at [2] provided an alternative approach using C via critcl. It was interesting to see how malleable tcl can be.