From 2027cd788794f8122c79a05205b788e8ab53b5ce Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Wed, 31 Mar 2010 19:27:28 -0400 Subject: [PATCH] In addon:AddRecipe(): Don't pre-initialize all of the filter "flags" to false, as nil will suffice - significantly curtails RAM usage. --- ARL.lua | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ARL.lua b/ARL.lua index ad30893..bcd0c72 100644 --- a/ARL.lua +++ b/ARL.lua @@ -870,11 +870,6 @@ function addon:AddRecipe(spell_id, skill_level, item_id, quality, profession, sp if not recipe.name then self:Print(strformat(L["SpellIDCache"], spell_id)) end - - -- Set all the flags to be false, will also set the padding spaces to false as well. - for i = 1, NUM_FILTER_FLAGS, 1 do - recipe["Flags"][i] = false - end recipe_list[spell_id] = recipe end -- 1.7.9.5