View Single Post
07-10-12, 05:26 PM   #86
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Lombra View Post
Why is it weaker? And am I understanding it right that this works without first needing to query anything?
Well, for one, if you want to scan a lot (eg. hundreds or thousands) of quests, as you would in an addon whose purpose is to direct you to quests you haven't yet completed, you have to make hundreds or thousands of function calls.

By contast, with QueryQuestsCompleted/GetQuestsCompleted, you have two function calls, and then you have a table containing every quest you've completed. Hundreds or thousands of table lookups are much faster than the same number of function calls.
__________________
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.