79258200

Date: 2024-12-06 13:52:11
Score: 1.5
Natty:
Report link

Following @aMike's tip, I added the code inside a proc so that TCL could optimize the bytecode. This resulted in a significant improvement in performance. Now runs in twice the time of Python.

TCL 8.6

array for: 154s
array while: 152s
dict for: 197s
dict while: 200s
list for: 363s
list while: 364s
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @aMike's
  • Self-answer (0.5):
Posted by: Ricardo