View Single Post
01-22-13, 11:12 PM   #18
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
If you think it's not more efficient to perform a table lookup once, store the result in a variable, and then consult the variable 10 times in the same function, versus performing the same table lookup 10 times in the same function, regardless of how many times you're calling the function, then there's nothing to "defend" or discuss, because we're not even speaking the same language.

Besides, when someone posts a vague psuedo-example, and I say something that amounts to "well, why not do it this way instead?" and you -- rather than providing a more concrete example, benchmarks, or rational arguments of any kind -- respond with a rapid-fire series of hysterical sarcastic gibberish, I really don't have any interest in trying to communicate with you.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote