docs: append performance patches to v1.5.5 changelogs

This commit is contained in:
Xurkon
2026-03-29 17:54:19 -05:00
parent 1b5c8ef685
commit 4d48925145
6 changed files with 72 additions and 85 deletions
+6 -1
View File
@@ -139,7 +139,9 @@ function ZoneDB:GetAreaIdByUiMapId(uiMapId)
-- Fast path: O(1) pre-built reverse cache
local cached = uiMapIdToAreaIdCache[uiMapId]
if cached then return cached end
if cached ~= nil then
return cached ~= false and cached or nil
end
-- Slow fallback: name-based lookup (only for unmapped IDs, result is cached for next time)
local mapInfo = C_Map.GetMapInfo(uiMapId)
@@ -158,6 +160,9 @@ function ZoneDB:GetAreaIdByUiMapId(uiMapId)
if Questie.db.profile.debugEnabled then
Questie:Debug(Questie.DEBUG_DEVELOP, "No AreaId found for UiMapId: " .. uiMapId .. ":" .. (mapInfo and mapInfo.name or "nil"))
end
-- We must cache that we found nothing so we don't run the slow lookup again
uiMapIdToAreaIdCache[uiMapId] = false
return nil
end