Premature Optimization
ELI5 — The Vibe Check
Premature Optimization is Knuth's famous warning: 'Premature optimization is the root of all evil.' Don't spend 3 days optimizing a function that runs once a month. Write clear code first, measure performance, THEN optimize the bottlenecks. You'll guess wrong about what's slow — you always do.
Real Talk
Premature optimization refers to optimizing code before profiling identifies actual bottlenecks. It often introduces complexity, reduces readability, and wastes development time on non-critical paths. The full Knuth quote: 'We should forget about small efficiencies about 97% of the time: premature optimization is the root of all evil.'
When You'll Hear This
"We spent a week optimizing the login query that takes 2ms — classic premature optimization." / "Profile first, optimize second. You'll be surprised where the real bottleneck is."