RISK
2011-12-27 09:46:40
When does using global variables become bad? I know that you should use local variables as much as you can. Say for X, Y, TPA, T2DPointArray and such. But for variables that you use only for settings that you can't use as local variables?
When does that become bad? Why is it bad? Is it only for standards and readability's sake or is there some other reason?
How does having something in a plugin help the speed? Is the speed increase really that much better? Say a script is 20k+ lines of code and there is no plausible way to shorten it. Would putting that script's functions & procedures in to a plugin help?
(Also I'm not sure that's how plugins actually work, but I'm just taking a wild guess.)
Thank you very much in advance to anyone that can answer my questions.
When does that become bad? Why is it bad? Is it only for standards and readability's sake or is there some other reason?
How does having something in a plugin help the speed? Is the speed increase really that much better? Say a script is 20k+ lines of code and there is no plausible way to shorten it. Would putting that script's functions & procedures in to a plugin help?
(Also I'm not sure that's how plugins actually work, but I'm just taking a wild guess.)
Thank you very much in advance to anyone that can answer my questions.