All laws
Amdahl's Law
Diminishing Returns.
If
Optimizing a small part of a system has no impact if the bottleneck is elsewhere.
Then
Find the 1% of the code that takes 90% of the time. Only optimize that. Ignore the rest.
Unless
Theory of Constraints