The Powder Toy
Download
Forum
Browse
Wiki
FAQ
Play online
Register
Login
Discussions
/
Feedback
/
Which is the faster?
«
1
»
Which is the faster?
Videogamer555
31st Dec 2011
Member
0
Permalink
If I'm going to use a particular element number for a set of tasks, such as SPRK in my lua code, which is faster?
calling tpt.el.sprk.id at each time I need to use it, or calling myvar=tpt.el.sprk.id and then using myvar whenever I need to refer to it.
devast8a
31st Dec 2011
Former Staff
0
Permalink
@Videogamer555
(View Post)
Likely the latter.
«
1
»