OpenRA/OpenRA — pull request #7108 by RoosterDragon (2014-12-09 23:20:23+00:00)
Title: Cache the initial path layer for faster path search startups.

Reinitializing the initial cell info layer for the path search took a fair bit of time. We cache this initial setup so it only has to be done each time the map size changes. A CopyValuesFrom method in CellLayer is provided which copies values between layers by just copying the internal arrays for speed.

On the RA shellmap, this reduces CPU time spent in InitCellInfo from 3.4% overall to 0.3% overall.