View Single Post
04-22-10, 10:13 AM   #12
Torhal
A Pyroguard Emberseer
 
Torhal's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 1,196
Originally Posted by Dridzt View Post
local polluters = {
["bicycle"] = false,
["car"] = true,
["truck"] = true,
}
Not only would leaving "bicycle" out of the list not alter how it works, but it doesn't allocate the byte required for the boolean. This could be considered nitpicking, but using this technique allowed me to decrease memory usage for ARL by roughly 40%.
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of NPCScan and many other AddOns.
  Reply With Quote