I saw this question asking about whether globals are bad.
As I thought about the ramifications of it, the only argument I could come up with that they’re necessary in some cases might be for performance reasons.
But, I’m not really sure about that. So my question is, would using a global be faster than using a get/set method call?
A more appropriate comparison would be between accessing a global (a static) and a local.
Indeed a global is faster because accessing a local requires the variable offset to be added to the value of the stack pointer.
However, you will never, ever need to worry about this. Try concentrating on things that matter, such as making your code be readable, writable, and working.