When I’m programming a module, I’ll declare variables in the module struct if I need those variables to persist over subsequent calls of process(). If I don’t need persistence I’ll just declare variables inside process().
My question is, does this have any appreciable effect on performance? Is continually declaring (and presumably destroying?) variables within the process() function call any different to declaring those functions once per module?