Infinitegde
O.O
- Reaction score
- 86
allocating local variables and utilizing them
vs
having globals and reading/writing them
??
vs
having globals and reading/writing them
??
I've heard that globals are faster, but it is negligible. In my opinion, use locals when it can warrant it, and use globals when you need it. I've heard globals can become a bit slower with the more that exist, so it may be best to keep unneeded globals away.
Overall, it isn't something that should grow your concern. Locals can be slower at times since you need to null most of them, but I still recommend using them when possible. (or, rather when it has pretty much the same efficiency)