Hi Simon,Simon Knight wrote: ↑Tue Mar 02, 2021 8:45 amThe main speed problem was caused by passing a copy
of the complete data variable to a function that was being called over a million times.
I'm on the same board as you, and I often use this little @ gremlin,
but not always as, like everything, it has its pros and cons.
However, in this thread context,
stam function() will not be called million of times
and
the passing array will not be copied
as it is not edited/updated inside the calling function.
- See bob's link to a more verbose explanation...
Hope that clarify a bit
Regards,