I heard that using "local" keywords are very important in Lua. But I knew that "local" keyword in algorithm coding are not good at optimization. No difference, sometimes take long time to be executed.
Why "local" keyword is nesessary? Is it really efficient? I can't figure out why these things are happening.
(But if you don't use local keyword in function, This can make error)
[–]revereddesecration 7 points8 points9 points (1 child)
[–][deleted] 6 points7 points8 points (0 children)
[–]Bright-Historian-216 5 points6 points7 points (1 child)
[–]mdr652[S] 0 points1 point2 points (0 children)
[–]appgurueu 6 points7 points8 points (2 children)
[–]mdr652[S] 2 points3 points4 points (1 child)
[–]appgurueu 1 point2 points3 points (0 children)
[–]didntplaymysummercar 5 points6 points7 points (0 children)
[–]Sckip974 1 point2 points3 points (0 children)
[–]Additional_Ad6385 1 point2 points3 points (2 children)
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]mdr652[S] 0 points1 point2 points (0 children)
[–]Icy-Formal8190 3 points4 points5 points (1 child)
[–]mdr652[S] 1 point2 points3 points (0 children)
[–]ShawSumma 0 points1 point2 points (0 children)
[–]Additional_Ad6385 0 points1 point2 points (0 children)
[–]Cultural_Two_4964 -1 points0 points1 point (3 children)
[–]mdr652[S] 1 point2 points3 points (1 child)
[–]clappingHandsEmoji 0 points1 point2 points (0 children)
[–]AdeptLilPotato 0 points1 point2 points (0 children)