Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize path finalization in pathfinder (minetest#8100)
The pathfinder needs quite a bunch of items to add to the resulting list. It turns out the amount of the space needed for the finalized path is known in advance so preallocate it to avoid a burst of reallocation calls each time something needs to look for a path.
- Loading branch information