Is there a difference in performance optimization between HA and Standalone?

No significant performance optimizations were introduced in High Availability.
The performance improvement comes in the form of horizontal scaling.

On a standalone version, when there is a huge load on the system, the performance will degrade significantly.
With High Availability, when one node is loaded significantly, then the load balancer can switch to the second node and therefore the performance shall not degrade.