Array of functions - is there a way to avoid allocations performance penalty?

Welcome!

Please put your code in a code block so it’s well formatted - so we can read it.

With a question like this, you could also describe what you are actually trying to do: the wider purpose of this code. Helping you make a better array of functions is not really helping you in the long term - you probably should be doing something else entirely. A little background will help people work out what that something is.

1 Like