et99 <et…@rocketship1.me> posted:
> Hi Olivier: > > The speed comes from being done in C instead of a Tcl loop, 64 bits at a time (and with SSE2 for some of the 8-, 16- and 32-bit operators). And yes, once the samples are integers, a threshold test gives a 1-bit array that you can combine with other tests and counting. > > > ...
Tcl being in C the comparison is fair, and it is much much faster. And your solution is quite usable in my opinion.
> ...
> The benchmark that produced the table is extras/listbench.tcl in the repository, and I would be glad to hear what numbers you get on your own machine. > > Thanks for your interest, > > Eric >
Unfortunately I am more comfortable with heat, magnetics, hydraulics, power electronics ... So that apart from the assembly language paragraph (that has not changed since ages, and could decipher), I cannot be constructive. But soon I will have interest in VHDL and simulation, so your result could save me if what I am doing in pure Tcl is too slow. And I wonder what you will discover with AI next time ? There seems to have a hype on security, but not on pure speed execution, hopefully you can help in improving Tcl speed. Olivier. PS : AI when it is reasonably used is a good tool for small projects, but I hope you will never ask ( in fact it will be so expensive ! ) Claude : Hey Claude, fork a new Tcl that is 10x faster on the whole set of commands" :-D ! I had only used it 4-5 times, the simple Chatgpt console, for procedure dealing with images in Tcl. It works, but it is not so clever.