News for hackers. Stuff that matters.
Re:Everyone can write bad code by sbov on Thursday February 08, 2018 @01:44PM (#16334471)
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.

Re:Everyone can write bad code by AstralStorm on Thursday February 08, 2018 @02:23PM (#16334788)
Counterpoint: 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.