4 ms·
The full Knuth quote: "We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. Yet we should not p
by sbov 9y ago
The full Knuth quote: "We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. Yet we should not pass up our opportunities in that critical 3%"
Keywords: small efficiencies.
How it's usually used: I shouldn't think about performance up front at all.
- AstralStorm 9y agoCounterpoint: small inefficiencies add up, ruining throughput and latency in a bigger codebase. Nothing teaches this better than seeing code making thousands of ephemeral objects in Java in a heap profiler and getting GC stalls with no big place to fix.