make mapview to cache visible units in a local dynamic map, instead of checking visibillity on every access
The local map can be updated via the unitAppeared, unitDisappeared and unitmoved signals. Having a own copy of the dynamic map inside the map view would speed up accesses to the mapview. Especially path calculation would be much faster.
To upload designs, you'll need to enable LFS. More information