View Single Post
07-10-12, 06:46 PM   #88
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 554
Originally Posted by Phanx View Post
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.
Yeah, that is true. Didn't think of checking incomplete quests, too. I just thought what was meant was that this new function is somehow not functionally similar to a table lookup (nevermind how you built said table), but I suppose the lack of a "all completed quests"-API is what was meant.
__________________
Grab your sword and fight the Horde!