@avo using local variables is about %30 faster than global variables. And speed of accessing a field of a table and accessing a global variable should be almost the same.
thanks atilim, local vs global is something I have trouble with since I'm always trying to use local but a lot of time end up having to global some things which always concerns me that I'm doing something wrong.
anyway as I gain more experience I look back at the code I wrote the week before and I want to rewrite it so maybe I'm moving in the right direction. :P
thanks atilim. I don't really have trouble using globals themselves I meant more like I feel like I'm taking the easy way out when I use them sometimes, which might cause problems later if performance were a problem.
I think I worry about it too much though at this point.
Comments
Likes: avo
anyway as I gain more experience I look back at the code I wrote the week before and I want to rewrite it so maybe I'm moving in the right direction. :P
I think I worry about it too much though at this point.
Likes: atilim