Premature optimization
the practice of optimizing a system or component before measuring and identifying the actual bottleneck, resulting in wasted effort applied to non-constraining elements rather than the true constraint that determines system performance