LL perf (Objects/world): LLWorld::getAvatars dedupes in O(n·m), every frame, from the minimap #325

Closed
opened 2026-10-04 14:09:20 +00:00 by sky_line · 0 comments
Owner

From the LL-origin inefficiency audit (finding O20). File/line references are from commit 0229f8872c; re-locate them before working.

LLWorld::getAvatars dedupes in O(n·m), every frame, from the minimap

  • Where: llworld.cpp:2096-2115, called from llnetmap.cpp:508 and FSRadar.
  • Fix: unordered_set; per-frame cache.
  • Confirmed. S.

Verify the cost (profile or timer) before and after changing it.

From the LL-origin inefficiency audit (finding O20). File/line references are from commit 0229f8872c; re-locate them before working. **`LLWorld::getAvatars` dedupes in O(n·m), every frame, from the minimap** - **Where:** `llworld.cpp:2096-2115`, called from `llnetmap.cpp:508` and FSRadar. - **Fix:** `unordered_set`; per-frame cache. - Confirmed. S. Verify the cost (profile or timer) before and after changing it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sky_line/Slipstream#325
No description provided.