WolfieeifloW
WEHZ Helper
- Reaction score
- 372
How many function calls does it take before using a variable is more efficient.
Ex: I use [ljass]GetTriggerUnit()[/ljass] twice in a function.
Is it better to make a variable [ljass]local unit tu = GetTriggerUnit()[/ljass] or just call it twice without the variable?
What's the magic number where it becomes better (More efficient) to use a variable?
Ex: I use [ljass]GetTriggerUnit()[/ljass] twice in a function.
Is it better to make a variable [ljass]local unit tu = GetTriggerUnit()[/ljass] or just call it twice without the variable?
What's the magic number where it becomes better (More efficient) to use a variable?