I had a couple of mostly theoretical questions about the python scripting, but maybe it will help me write better code as well.
Is there any performance hit at all for passing properties of various components to local variables for use in the script? Or, is it the complete opposite, since the script doesn’t have to go “looking” for the actual variable every time it is evaluated? Obviously using local variables makes the code much more readable, so I prefer that. Or is the difference so small that it doesn’t even matter?
Again, is there much overhead in passing parameters to functions? What is a reasonable number of parameters? 5, 10, 20? I’m assuming that a lot of parameters means that the component class needs some restructuring, but from a performance standpoint does it even matter?
These are probably minor points and more out of curiousity, but as I get more into the java paint component scripting, I’d like to understand this thoroughly.