When you select a group of units and then right click on a friendly entity. Performance tanks once the group reach its destination. How heavy performance hit is relative to the group size, so large group takes heavier performance hit.
This often happens in map mode when I accidently click on a friendly entity.
Details:
https://github.com/Klonan/Unit_Control/issues/2
Potential changes: This delay the command to run once every second.
https://github.com/Klonan/Unit_Control/pull/3