Quantcast General question about performance - WoWInterface
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
07-07-19, 01:13 AM   #1
Lybrial
A Theradrim Guardian
AddOn Compiler - Click to view compilations
Join Date: Jan 2010
Posts: 66
General question about performance

Hi!

In many AddOns I see people doing stuff like that:

Lua Code:
  1. local _G = _G;
  2. local wipe = table.wipe;
  3. local remove = table.remove;
  4. ....

Whats the big advantage of that? Is it affecting the performance? The memory usage?
Is it for better readability? Just generally: Whats the reason for that?

This would all just create references, right?
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » General question about performance

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off