[ENHANCEMENT] GridMapGenerator: LINQ allocations in A* generation loop #29
Labels
No labels
architecture
bug
duplicate
enhancement
help wanted
invalid
performance
quality
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lavarius/ProjectOverlay#29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
🟢 Low — Design Enhancement
File:
GridMapGenerator.csLINQ chains (
.Where().OrderBy().Take()) are used inside the A* generation loop, allocating managed memory on every iteration. This causes GC pressure during map generation.Fix:
.Where()results where the filter doesn't change per iteration.OrderBy().Take(1)with a manual min-search loop (no allocation)SortedList, priority queue) to avoid per-step sorting